tdesocketaddress.cpp
KInetSocketAddress & setScopeId(int scopeid)
Sets the scope id for this IPv6 object.
Definition: tdesocketaddress.cpp:923
KUnixSocketAddress & asUnix()
Returns an object reference that can be used to manipulate this socket as a Unix socket address.
Definition: tdesocketaddress.cpp:655
TDESocketAddress & operator=(const TDESocketAddress &other)
Performs a shallow copy of the other object into this one.
Definition: tdesocketaddress.cpp:452
static int fromIanaFamily(int iana)
Returns the address family of the given IANA family number.
Definition: tdesocketaddress.cpp:686
KUnixSocketAddress & operator=(const KUnixSocketAddress &other)
Copy operator.
Definition: tdesocketaddress.cpp:972
virtual TQString nodeName() const
Returns the node name of this socket.
Definition: tdesocketaddress.cpp:576
A namespace to store all networking-related (socket) classes.
Definition: kbufferedsocket.h:36
TQ_UINT16 length() const
Returns the length of this socket address structure.
Definition: tdesocketaddress.cpp:485
KInetSocketAddress & setPort(TQ_UINT16 port)
Sets the port number.
Definition: tdesocketaddress.cpp:852
KInetSocketAddress & operator=(const KInetSocketAddress &other)
Copy operator.
Definition: tdesocketaddress.cpp:754
int ianaFamily() const
Returns the IANA family number of this address.
Definition: tdesocketaddress.h:550
TQString pathname() const
Returns the pathname associated with this object.
Definition: tdesocketaddress.cpp:978
KInetSocketAddress & makeIPv4()
Converts this object to an IPv4 socket address.
Definition: tdesocketaddress.cpp:880
TQ_UINT32 flowinfo() const
Returns the flowinfo information from the IPv6 socket address.
Definition: tdesocketaddress.cpp:892
TQ_UINT32 IPv4Addr(bool convertMapped=true) const
This is a convenience function.
Definition: tdesocketaddress.h:235
static const KIpAddress anyhostV4
the any host or undefined address in IPv4 (0.0.0.0)
Definition: tdesocketaddress.h:406
TQ_UINT32 hostIPv4Addr(bool convertMapped=true) const
This is a convenience function.
Definition: tdesocketaddress.cpp:211
KInetSocketAddress & setHost(const KIpAddress &addr)
Sets the IP address to the given raw address.
Definition: tdesocketaddress.cpp:806
const void * addr() const
Returns a pointer to binary raw data representing the address.
Definition: tdesocketaddress.h:220
int scopeId() const
Returns the scope id this IPv6 socket is bound to.
Definition: tdesocketaddress.cpp:911
int ipVersion() const
Returns the IP version of the address this object holds.
Definition: tdesocketaddress.cpp:761
virtual TDESocketAddress & setFamily(int family)
Sets the family of this object.
Definition: tdesocketaddress.cpp:506
KInetSocketAddress & setFlowinfo(TQ_UINT32 flowinfo)
Sets the flowinfo information for an IPv6 socket address.
Definition: tdesocketaddress.cpp:904
TDESocketAddress & setAddress(const sockaddr *sa, TQ_UINT16 len)
Sets the address to the given address.
Definition: tdesocketaddress.cpp:475
bool operator==(const TDESocketAddress &other) const
Returns true if this equals the other socket.
Definition: tdesocketaddress.cpp:515
TQ_UINT16 port() const
Retrieves the port number stored in this object.
Definition: tdesocketaddress.cpp:829
bool setAddress(const TQString &address)
Sets the address to the given string representation.
Definition: tdesocketaddress.cpp:129
virtual TQString serviceName() const
Returns the service name for this socket.
Definition: tdesocketaddress.cpp:603
KInetSocketAddress & asInet()
Returns an object reference that can be used to manipulate this socket as an Internet socket address.
Definition: tdesocketaddress.cpp:645
bool compare(const KIpAddress &other, bool checkMapped=true) const
Compares this address against the other, supplied one and return true if they match.
Definition: tdesocketaddress.cpp:96
KUnixSocketAddress & setPathname(const TQString &path)
Sets the pathname for the object.
Definition: tdesocketaddress.cpp:985
const sockaddr * address() const
Returns the socket address structure, to be passed down to low level functions.
Definition: tdesocketaddress.cpp:461
TDESocketAddress & setLength(TQ_UINT16 len)
Sets the length of this socket structure.
Definition: tdesocketaddress.cpp:492
static const KIpAddress anyhostV6
the any host or undefined address in IPv6 (::)
Definition: tdesocketaddress.h:411
virtual TQString toString() const
Returns this socket address as a string suitable for printing.
Definition: tdesocketaddress.cpp:623
KInetSocketAddress & makeIPv6()
Converts this object to an IPv6 socket address.
Definition: tdesocketaddress.cpp:886