Logo Search packages:      
Sourcecode: kdenetwork version File versions

bool KInetSocketAddress::setAddress ( const KInetSocketAddress ksa  ) 

Sets this socket to given socket.

ksa the other socket
true if successful, false otherwise

Definition at line 317 of file ksockaddr.cpp.

References addressV4(), addressV6(), KSocketAddress::family(), and size().

Referenced by KInetSocketAddress(), and operator=().

  if (other.family() == AF_INET)
    return setAddress(other.addressV4(), other.size());
#ifdef AF_INET6
  else if (other.family() == AF_INET6)
    return setAddress(other.addressV6(), other.size());
  return false;

Generated by  Doxygen 1.6.0   Back to index