KDECore
k3socketaddress.cpp
Go to the documentation of this file.
KInetSocketAddress & makeIPv6()
Converts this object to an IPv6 socket address.
Definition: k3socketaddress.cpp:845
KInetSocketAddress & setScopeId(int scopeid)
Sets the scope id for this IPv6 object.
Definition: k3socketaddress.cpp:882
KInetSocketAddress & operator=(const KInetSocketAddress &other)
Copy operator.
Definition: k3socketaddress.cpp:729
int ipVersion() const
Returns the IP version of the address this object holds.
Definition: k3socketaddress.cpp:736
int scopeId() const
Returns the scope id this IPv6 socket is bound to.
Definition: k3socketaddress.cpp:870
quint32 flowinfo() const
Returns the flowinfo information from the IPv6 socket address.
Definition: k3socketaddress.cpp:851
KInetSocketAddress & setHost(const KIpAddress &addr)
Sets the IP address to the given raw address.
Definition: k3socketaddress.cpp:773
KInetSocketAddress & setFlowinfo(quint32 flowinfo)
Sets the flowinfo information for an IPv6 socket address.
Definition: k3socketaddress.cpp:863
KInetSocketAddress & makeIPv4()
Converts this object to an IPv4 socket address.
Definition: k3socketaddress.cpp:839
quint16 port() const
Retrieves the port number stored in this object.
Definition: k3socketaddress.cpp:796
const void * addr() const
Returns a pointer to binary raw data representing the address.
Definition: k3socketaddress.h:220
static const KIpAddress anyhostV6
the any host or undefined address in IPv6 (::)
Definition: k3socketaddress.h:401
static const KIpAddress anyhostV4
the any host or undefined address in IPv4 (0.0.0.0)
Definition: k3socketaddress.h:396
bool setAddress(const QString &address)
Sets the address to the given string representation.
Definition: k3socketaddress.cpp:133
bool compare(const KIpAddress &other, bool checkMapped=true) const
Compares this address against the other, supplied one and return true if they match.
Definition: k3socketaddress.cpp:100
KSocketAddress & operator=(const KSocketAddress &other)
Performs a shallow copy of the other object into this one.
Definition: k3socketaddress.cpp:440
virtual QString nodeName() const
Returns the node name of this socket.
Definition: k3socketaddress.cpp:560
bool operator==(const KSocketAddress &other) const
Returns true if this equals the other socket.
Definition: k3socketaddress.cpp:503
const sockaddr * address() const
Returns the socket address structure, to be passed down to low level functions.
Definition: k3socketaddress.cpp:449
KSocketAddress & setAddress(const sockaddr *sa, quint16 len)
Sets the address to the given address.
Definition: k3socketaddress.cpp:463
virtual QString serviceName() const
Returns the service name for this socket.
Definition: k3socketaddress.cpp:586
static int fromIanaFamily(int iana)
Returns the address family of the given IANA family number.
Definition: k3socketaddress.cpp:665
KUnixSocketAddress & asUnix()
Returns an object reference that can be used to manipulate this socket as a Unix socket address.
Definition: k3socketaddress.cpp:638
quint16 length() const
Returns the length of this socket address structure.
Definition: k3socketaddress.cpp:473
KSocketAddress & setLength(quint16 len)
Sets the length of this socket structure.
Definition: k3socketaddress.cpp:480
int ianaFamily() const
Returns the IANA family number of this address.
Definition: k3socketaddress.h:541
virtual QString toString() const
Returns this socket address as a string suitable for printing.
Definition: k3socketaddress.cpp:606
virtual KSocketAddress & setFamily(int family)
Sets the family of this object.
Definition: k3socketaddress.cpp:494
KInetSocketAddress & asInet()
Returns an object reference that can be used to manipulate this socket as an Internet socket address.
Definition: k3socketaddress.cpp:628
QString pathname() const
Returns the pathname associated with this object.
Definition: k3socketaddress.cpp:937
KUnixSocketAddress & setPathname(const QString &path)
Sets the pathname for the object.
Definition: k3socketaddress.cpp:944
KUnixSocketAddress & operator=(const KUnixSocketAddress &other)
Copy operator.
Definition: k3socketaddress.cpp:931
static bool check_v4mapped(const quint32 *v6addr, quint32 v4addr)
Definition: k3socketaddress.cpp:81
QString i18nc(const char *ctxt, const char *text)
Returns a localized version of a string and a context.
Definition: klocalizedstring.h:797
A namespace to store all networking-related (socket) classes.
Definition: k3bufferedsocket.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.