KDECore
k3socketaddress.cpp
Go to the documentation of this file.
static const KIpAddress anyhostV6
the any host or undefined address in IPv6 (::)
Definition: k3socketaddress.h:401
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
void truncate(int position)
virtual QString toString() const
Returns this socket address as a string suitable for printing.
Definition: k3socketaddress.cpp:606
KSocketAddress & setLength(quint16 len)
Sets the length of this socket structure.
Definition: k3socketaddress.cpp:480
virtual QString nodeName() const
Returns the node name of this socket.
Definition: k3socketaddress.cpp:560
QString pathname() const
Returns the pathname associated with this object.
Definition: k3socketaddress.cpp:937
const sockaddr * address() const
Returns the socket address structure, to be passed down to low level functions.
Definition: k3socketaddress.cpp:449
void ref()
Tells KGlobal about one more operations that should be finished before the application exits...
Definition: kglobal.cpp:321
QString i18nc(const char *ctxt, const char *text)
Returns a localized version of a string and a context.
Definition: klocalizedstring.h:797
virtual KSocketAddress & setFamily(int family)
Sets the family of this object.
Definition: k3socketaddress.cpp:494
quint32 flowinfo() const
Returns the flowinfo information from the IPv6 socket address.
Definition: k3socketaddress.cpp:851
QString number(int n, int base)
quint16 port() const
Retrieves the port number stored in this object.
Definition: k3socketaddress.cpp:796
KInetSocketAddress & makeIPv6()
Converts this object to an IPv6 socket address.
Definition: k3socketaddress.cpp:845
const void * addr() const
Returns a pointer to binary raw data representing the address.
Definition: k3socketaddress.h:220
KInetSocketAddress & asInet()
Returns an object reference that can be used to manipulate this socket as an Internet socket address...
Definition: k3socketaddress.cpp:628
int ipVersion() const
Returns the IP version of the address this object holds.
Definition: k3socketaddress.cpp:736
KUnixSocketAddress & operator=(const KUnixSocketAddress &other)
Copy operator.
Definition: k3socketaddress.cpp:931
static bool check_v4mapped(const quint32 *v6addr, quint32 v4addr)
Definition: k3socketaddress.cpp:81
static const KIpAddress anyhostV4
the any host or undefined address in IPv4 (0.0.0.0)
Definition: k3socketaddress.h:396
const char * inet_ntop(int af, const void *cp, char *buf, size_t len)
Definition: netsupp.cpp:1040
KInetSocketAddress & setScopeId(int scopeid)
Sets the scope id for this IPv6 object.
Definition: k3socketaddress.cpp:882
bool setAddress(const QString &address)
Sets the address to the given string representation.
Definition: k3socketaddress.cpp:133
virtual QString serviceName() const
Returns the service name for this socket.
Definition: k3socketaddress.cpp:586
int ianaFamily() const
Returns the IANA family number of this address.
Definition: k3socketaddress.h:541
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
static int fromIanaFamily(int iana)
Returns the address family of the given IANA family number.
Definition: k3socketaddress.cpp:665
QByteArray toLatin1() const
int scopeId() const
Returns the scope id this IPv6 socket is bound to.
Definition: k3socketaddress.cpp:870
KInetSocketAddress & operator=(const KInetSocketAddress &other)
Copy operator.
Definition: k3socketaddress.cpp:729
KSocketAddress & setAddress(const sockaddr *sa, quint16 len)
Sets the address to the given address.
Definition: k3socketaddress.cpp:463
KInetSocketAddress & makeIPv4()
Converts this object to an IPv4 socket address.
Definition: k3socketaddress.cpp:839
unsigned int version()
Returns the encoded number of KDE's version, see the KDE_VERSION macro.
Definition: kdeversion.cpp:24
quint16 length() const
Returns the length of this socket address structure.
Definition: k3socketaddress.cpp:473
KSocketAddress & operator=(const KSocketAddress &other)
Performs a shallow copy of the other object into this one.
Definition: k3socketaddress.cpp:440
int length() const
bool operator==(const KSocketAddress &other) const
Returns true if this equals the other socket.
Definition: k3socketaddress.cpp:503
KUnixSocketAddress & setPathname(const QString &path)
Sets the pathname for the object.
Definition: k3socketaddress.cpp:944
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
KUnixSocketAddress & asUnix()
Returns an object reference that can be used to manipulate this socket as a Unix socket address...
Definition: k3socketaddress.cpp:638
QByteArray encodeName(const QString &fileName)
QString decodeName(const QByteArray &localFileName)
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.