tdesocketaddress.h
KInetSocketAddress & setPort(TQ_UINT16 port)
Sets the port number.
Definition tdesocketaddress.cpp:852
KInetSocketAddress & makeIPv6()
Converts this object to an IPv6 socket address.
Definition tdesocketaddress.cpp:886
KInetSocketAddress & setScopeId(int scopeid)
Sets the scope id for this IPv6 object.
int scopeId() const
Returns the scope id this IPv6 socket is bound to.
TQ_UINT16 port() const
Retrieves the port number stored in this object.
TQ_UINT32 flowinfo() const
Returns the flowinfo information from the IPv6 socket address.
KInetSocketAddress(const KInetSocketAddress &other)
Copy constructor.
KInetSocketAddress & setFlowinfo(TQ_UINT32 flowinfo)
Sets the flowinfo information for an IPv6 socket address.
KInetSocketAddress & setHost(const KIpAddress &addr)
Sets the IP address to the given raw address.
KInetSocketAddress & makeIPv4()
Converts this object to an IPv4 socket address.
Definition tdesocketaddress.cpp:880
bool isSiteLocal() const
Returns true if this is an IPv6 site-local address.
Definition tdesocketaddress.h:331
bool isMulticastOrgLocal() const
Returns true if this is an IPv6 organisational-local multicast address.
Definition tdesocketaddress.h:388
KIpAddress(const void *addr, int version=4)
Creates an object from the given raw data and IP version.
Definition tdesocketaddress.h:109
bool isClassC() const
Returns true if this is an IPv4 class C address, i.e., one from 192.0.0.0 to 223.255....
Definition tdesocketaddress.h:295
bool isClassB() const
Returns true if this is an IPv4 class B address, i.e., one from 128.0.0.0 to 191.255....
Definition tdesocketaddress.h:286
bool isLocalhost() const
Returns true if this is either the IPv4 or the IPv6 localhost address.
Definition tdesocketaddress.h:262
TQ_UINT32 hostIPv4Addr(bool convertMapped=true) const
This is a convenience function.
Definition tdesocketaddress.cpp:211
TQ_UINT32 IPv4Addr(bool convertMapped=true) const
This is a convenience function.
Definition tdesocketaddress.h:235
const void * addr() const
Returns a pointer to binary raw data representing the address.
Definition tdesocketaddress.h:220
bool isLinkLocal() const
Returns true if this is an IPv6 link-local address.
Definition tdesocketaddress.h:320
KIpAddress(const TQString &addr)
Creates an object from the given string representation.
Definition tdesocketaddress.h:90
bool isMulticastSiteLocal() const
Returns true if this is an IPv6 site-local multicast address.
Definition tdesocketaddress.h:382
bool isMulticast() const
Returns true if this is a multicast address, be it IPv4 or IPv6.
Definition tdesocketaddress.h:310
bool isMulticastNodeLocal() const
Returns true if this is an IPv6 node-local multicast address.
Definition tdesocketaddress.h:370
bool isUnspecified() const
Returns true if this is the IPv4 or IPv6 unspecified address.
Definition tdesocketaddress.h:256
bool isMulticastLinkLocal() const
Returns true if this is an IPv6 link-local multicast address.
Definition tdesocketaddress.h:376
bool isV4Compat() const
Returns true if this is a v4-compat IPv6 address.
Definition tdesocketaddress.h:360
bool setAddress(const TQString &address)
Sets the address to the given string representation.
Definition tdesocketaddress.cpp:129
bool isClassD() const
Returns true if this is an IPv4 class D (a.k.a.
Definition tdesocketaddress.h:304
bool isGlobal() const
Returns true if this is a global IPv6 address.
Definition tdesocketaddress.h:342
static const KIpAddress anyhostV6
the any host or undefined address in IPv6 (::)
Definition tdesocketaddress.h:411
static const KIpAddress anyhostV4
the any host or undefined address in IPv4 (0.0.0.0)
Definition tdesocketaddress.h:406
bool isMulticastGlobal() const
Returns true if this is an IPv6 global multicast address.
Definition tdesocketaddress.h:394
bool isV4Mapped() const
Returns true if this is a v4-mapped IPv6 address.
Definition tdesocketaddress.h:348
bool isClassA() const
Returns true if this is an IPv4 class A address, i.e., from 0.0.0.0 to 127.255.255....
Definition tdesocketaddress.h:277
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
KIpAddress(const char *addr)
Creates an object from the given string representation.
Definition tdesocketaddress.h:100
TQString pathname() const
Returns the pathname associated with this object.
KUnixSocketAddress & setPathname(const TQString &path)
Sets the pathname for the object.
Definition tdesocketaddress.cpp:985
TDESocketAddress & setAddress(const sockaddr *sa, TQ_UINT16 len)
Sets the address to the given address.
Definition tdesocketaddress.cpp:475
const sockaddr * address() const
Returns the socket address structure, to be passed down to low level functions.
static int fromIanaFamily(int iana)
Returns the address family of the given IANA family number.
KUnixSocketAddress & asUnix()
Returns an object reference that can be used to manipulate this socket as a Unix socket address.
Definition tdesocketaddress.cpp:655
virtual TDESocketAddress & setFamily(int family)
Sets the family of this object.
Definition tdesocketaddress.cpp:506
virtual TQString nodeName() const
Returns the node name of this socket.
KInetSocketAddress & asInet()
Returns an object reference that can be used to manipulate this socket as an Internet socket address.
Definition tdesocketaddress.cpp:645
static int ianaFamily(int af)
Returns the IANA family number of the given address family.
virtual TQString toString() const
Returns this socket address as a string suitable for printing.
Definition tdesocketaddress.cpp:623
virtual TQString serviceName() const
Returns the service name for this socket.
int ianaFamily() const
Returns the IANA family number of this address.
Definition tdesocketaddress.h:550
A namespace to store all networking-related (socket) classes.
Definition kbufferedsocket.h:36
Trinity API Reference