tdesocketaddress.h
const void * addr() const
Returns a pointer to binary raw data representing the address.
Definition: tdesocketaddress.h:220
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 IPv4Addr(bool convertMapped=true) const
This is a convenience function.
Definition: tdesocketaddress.h:235
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 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
KIpAddress(const char *addr)
Creates an object from the given string representation.
Definition: tdesocketaddress.h:100
int ianaFamily() const
Returns the IANA family number of this address.
Definition: tdesocketaddress.h:550
const sockaddr * address() const
Returns a sockaddr structure, for passing down to library functions.
Definition: ksockaddr.h:78
A namespace to store all networking-related (socket) classes.
Definition: kbufferedsocket.h:36