|
|
This class manages an unix socket address.
UnixAddress ()
| UnixAddress |
Constructor for an empty unix address.
UnixAddress (const UnixAddress& address)
| UnixAddress |
Constructor for an unix address from an unix address.
Parameters:
address | Unix address. |
UnixAddress (const String& name)
| UnixAddress |
Constructor for a unix address given by a string. Examples: "/tmp/test.socket".
Parameters:
name | Address string. |
UnixAddress (sockaddr* address, cardinal length)
| UnixAddress |
Constructor for a unix address from the system's sockaddr structure.
Parameters:
address | sockaddr. |
length | Length of sockaddr. |
~UnixAddress ()
| ~UnixAddress |
Destructor.
void reset ()
| reset |
Reset unix address.
Reimplemented from SocketAddress.
void init (const UnixAddress& address)
| init |
Initialize unix address from unix address.
void init (const String& name)
| init |
Initialize unix address from socket name.
inline UnixAddress& operator= (const UnixAddress& source)
| operator= |
Implementation of = operator.
bool isValid ()
| isValid |
[const]
isValid() implementation of SocketAddress.
See also: SocketAddress#isValid
Reimplemented from SocketAddress.
integer getFamily ()
| getFamily |
[const]
getFamily() implementation of SocketAddress.
See also: SocketAddress#getFamily
Reimplemented from SocketAddress.
String getAddressString (const cardinal format = PF_Default)
| getAddressString |
[const]
getAddressString() implementation of SocketAddress.
See also: SocketAddress#getAddress
Reimplemented from SocketAddress.
inline bool isNull ()
| isNull |
[const]
Check, if the address is null.
Returns: true, if the address is not null; false otherwise.
card16 getPort ()
| getPort |
[const]
getPort() implementation of SocketAddress.
See also: SocketAddress#getPort
Reimplemented from SocketAddress.
void setPort (const card16 port)
| setPort |
setPort() implementation of SocketAddress.
See also: SocketAddress#setPort
Reimplemented from SocketAddress.
cardinal getSystemAddress (sockaddr* buffer,
const socklen_t length,
const cardinal type)
| getSystemAddress |
[const]
getSystemAddress() implementation of SocketAddress
See also: SocketAddress#getSystemAddress
Reimplemented from SocketAddress.
bool setSystemAddress (sockaddr* address, const socklen_t length)
| setSystemAddress |
setSystemAddress() implementation of SocketAddress.
See also: SocketAddress#setSystemAddress
Reimplemented from SocketAddress.
int operator== (const UnixAddress& address)
| operator== |
[const]
Implementation of == operator.
inline int operator!= (const UnixAddress& address)
| operator!= |
[const]
Implementation of != operator.
int operator< (const UnixAddress& address)
| operator< |
[const]
Implementation of < operator.
inline int operator<= (const UnixAddress& address)
| operator<= |
[const]
Implementation of <= operator.
int operator> (const UnixAddress& address)
| operator> |
[const]
Implementation of > operator.
inline int operator>= (const UnixAddress& address)
| operator>= |
[const]
Implementation of >= operator.