#include <ksockaddr.h>
Inheritance diagram for KUnixSocketAddress:

Public Methods | |
| KUnixSocketAddress () | |
| KUnixSocketAddress (const sockaddr_un *raw_data, ksocklen_t size) | |
| KUnixSocketAddress (QCString pathname) | |
| virtual | ~KUnixSocketAddress () |
| bool | setAddress (const sockaddr_un *socket_address, ksocklen_t size) |
| bool | setAddress (QCString path) |
| QCString | pathname () const |
| virtual QString | pretty () const |
| virtual QString | serviceName () const |
| const sockaddr_un * | address () const |
| operator const sockaddr_un * () const | |
Static Public Methods | |
| bool | areEqualUnix (const KSocketAddress &s1, const KSocketAddress &s2, bool coreOnly) |
Protected Methods | |
| virtual void | virtual_hook (int id, void *data) |
Friends | |
| class | KExtendedSocket |
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
Definition at line 588 of file ksockaddr.h.
|
|
Default constructor |
|
||||||||||||
|
Constructor from raw data.
|
|
|
Constructor from pathname.
|
|
|
Destructor |
|
|
Returns raw socket address.
Reimplemented from KSocketAddress. Referenced by operator const sockaddr_un *(). |
|
||||||||||||||||
|
Compares two unix socket addresses.
|
|
|
Returns raw socket address.
Definition at line 662 of file ksockaddr.h. References address(). |
|
|
Returns the pathname.
|
|
|
Returns pretty representation of this socket.
Reimplemented from KSocketAddress. |
|
|
Returns the service name for this socket, as KExtendedSocket::lookup expects as the service argument. In the case of Internet sockets, this is the port number. The default implementation returns QString::null.
Reimplemented from KSocketAddress. |
|
|
Sets this to given pathname.
|
|
||||||||||||
|
Sets this to given sockaddr_un.
|
1.2.18