tdesocketaddress.cpp
KInetSocketAddress & setScopeId(int scopeid)
Sets the scope id for this IPv6 object.
Definition: tdesocketaddress.cpp:884
TDESocketAddress & operator=(const TDESocketAddress &other)
Performs a shallow copy of the other object into this one.
Definition: tdesocketaddress.cpp:442
static int fromIanaFamily(int iana)
Returns the address family of the given IANA family number.
Definition: tdesocketaddress.cpp:667
KUnixSocketAddress & operator=(const KUnixSocketAddress &other)
Copy operator.
Definition: tdesocketaddress.cpp:933
virtual TQString nodeName() const
Returns the node name of this socket.
Definition: tdesocketaddress.cpp:562
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:475
KInetSocketAddress & setPort(TQ_UINT16 port)
Sets the port number.
Definition: tdesocketaddress.cpp:817
KInetSocketAddress & operator=(const KInetSocketAddress &other)
Copy operator.
Definition: tdesocketaddress.cpp:731
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:939
KInetSocketAddress & makeIPv4()
Converts this object to an IPv4 socket address.
Definition: tdesocketaddress.cpp:841
TQ_UINT32 flowinfo() const
Returns the flowinfo information from the IPv6 socket address.
Definition: tdesocketaddress.cpp:853
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:209
KInetSocketAddress & setHost(const KIpAddress &addr)
Sets the IP address to the given raw address.
Definition: tdesocketaddress.cpp:775
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:872
KInetSocketAddress & asInet()
Returns an object reference that can be used to manipulate this socket as an Internet socket address.
Definition: tdesocketaddress.cpp:630
int ipVersion() const
Returns the IP version of the address this object holds.
Definition: tdesocketaddress.cpp:738
virtual TDESocketAddress & setFamily(int family)
Sets the family of this object.
Definition: tdesocketaddress.cpp:496
KInetSocketAddress & setFlowinfo(TQ_UINT32 flowinfo)
Sets the flowinfo information for an IPv6 socket address.
Definition: tdesocketaddress.cpp:865
const sockaddr * address() const
Returns the socket address structure, to be passed down to low level functions.
Definition: tdesocketaddress.cpp:451
TDESocketAddress & setAddress(const sockaddr *sa, TQ_UINT16 len)
Sets the address to the given address.
Definition: tdesocketaddress.cpp:465
bool operator==(const TDESocketAddress &other) const
Returns true if this equals the other socket.
Definition: tdesocketaddress.cpp:505
TQ_UINT16 port() const
Retrieves the port number stored in this object.
Definition: tdesocketaddress.cpp:798
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:588
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:946
KUnixSocketAddress & asUnix()
Returns an object reference that can be used to manipulate this socket as a Unix socket address.
Definition: tdesocketaddress.cpp:640
TDESocketAddress & setLength(TQ_UINT16 len)
Sets the length of this socket structure.
Definition: tdesocketaddress.cpp:482
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:608
KInetSocketAddress & makeIPv6()
Converts this object to an IPv6 socket address.
Definition: tdesocketaddress.cpp:847
Trinity API Reference