|
|
A Unix socket address
This is a Unix socket address
This class expects QCString instead of QString values, which means the filenames should be encoded in whatever form locale/system deems necessary before passing down to the function
KUnixSocketAddress ()
| KUnixSocketAddress |
Default constructor
KUnixSocketAddress (const sockaddr_un* raw_data, ksocklen_t size)
| KUnixSocketAddress |
Constructor from raw data
Parameters:
raw_data | raw data |
size | data length |
KUnixSocketAddress (QCString pathname)
| KUnixSocketAddress |
Constructor from pathname
Parameters:
path | pathname |
~KUnixSocketAddress ()
| ~KUnixSocketAddress |
[virtual]
Destructor
bool setAddress (const sockaddr_un* socket_address, ksocklen_t size)
| setAddress |
Sets this to given sockaddr_un
Parameters:
socket_address | socket address |
size | the socket length |
bool setAddress (QCString path)
| setAddress |
Sets this to given pathname
Parameters:
path | pathname |
QCString pathname ()
| pathname |
[const]
Returns the pathname
QString pretty ()
| pretty |
[const virtual]
Returns pretty representation of this socket
Reimplemented from KSocketAddress.
QString serviceName ()
| serviceName |
[const virtual]
Reimplemented from KSocketAddress.
const sockaddr_un* address ()
| address |
[const]
Returns raw socket address
Reimplemented from KSocketAddress.
operator const sockaddr_un* ()
| operator const sockaddr_un* |
[const]
Returns raw socket address
bool areEqualUnix (const KSocketAddress &s1, const KSocketAddress &s2, bool coreOnly)
| areEqualUnix |
[static]