#include <tdesocketaddress.h>
Protected Member Functions | |
KUnixSocketAddress (TDESocketAddressData *d) | |
Protected Member Functions inherited from KNetwork::TDESocketAddress | |
TDESocketAddress (TDESocketAddressData *d) | |
Friends | |
class | TDESocketAddress |
Additional Inherited Members | |
Static Public Member Functions inherited from KNetwork::TDESocketAddress | |
static int | ianaFamily (int af) |
static int | fromIanaFamily (int iana) |
Protected Attributes inherited from KNetwork::TDESocketAddress | |
TDESocketAddressData * | d |
Detailed Description
A Unix (local) socket address.
This is a Unix socket address.
Note that this class uses QStrings to represent filenames, which means the proper encoding is used to translate into valid filesystem file names.
Definition at line 840 of file tdesocketaddress.h.
Constructor & Destructor Documentation
◆ KUnixSocketAddress() [1/4]
KUnixSocketAddress::KUnixSocketAddress | ( | ) |
◆ KUnixSocketAddress() [2/4]
KUnixSocketAddress::KUnixSocketAddress | ( | const sockaddr * | sa, |
TQ_UINT16 | len | ||
) |
Creates this object with the given raw data.
If the sockaddr structure does not contain a Local namespace (Unix) socket, this object will be created empty.
- Parameters
-
sa the socket address structure len the structure's length
Definition at line 946 of file tdesocketaddress.cpp.
◆ KUnixSocketAddress() [3/4]
KUnixSocketAddress::KUnixSocketAddress | ( | const KUnixSocketAddress & | other | ) |
Copy constructor.
Creates a copy of the other object, sharing the data explicitly.
- Parameters
-
other the other object
Definition at line 953 of file tdesocketaddress.cpp.
◆ KUnixSocketAddress() [4/4]
KUnixSocketAddress::KUnixSocketAddress | ( | const TQString & | pathname | ) |
Constructs an object from the given pathname.
Definition at line 958 of file tdesocketaddress.cpp.
◆ ~KUnixSocketAddress()
|
virtual |
Destructor.
Definition at line 968 of file tdesocketaddress.cpp.
Member Function Documentation
◆ operator const sockaddr_un *()
|
inline |
Cast operator to sockaddr_un.
Definition at line 888 of file tdesocketaddress.h.
◆ operator=()
KUnixSocketAddress & KUnixSocketAddress::operator= | ( | const KUnixSocketAddress & | other | ) |
Copy operator.
Copies the contents of the other object into this one. Data is explicitly shared.
- Parameters
-
other the other
Definition at line 972 of file tdesocketaddress.cpp.
◆ pathname()
TQString KUnixSocketAddress::pathname | ( | ) | const |
Returns the pathname associated with this object.
Will return TQString::null if this object is empty.
Definition at line 978 of file tdesocketaddress.cpp.
◆ setPathname()
KUnixSocketAddress & KUnixSocketAddress::setPathname | ( | const TQString & | path | ) |
Sets the pathname for the object.
- Returns
- a reference to itself
Definition at line 985 of file tdesocketaddress.cpp.
The documentation for this class was generated from the following files: