tdesocketaddress.h
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.
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
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 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
TQString pathname() const
Returns the pathname associated with this object.
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.
virtual TQString nodeName() const
Returns the node name of this socket.
static int ianaFamily(int af)
Returns the IANA family number of the given address family.
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