class UnixAddress

Socket Address. More...

Full nameCoral::UnixAddress
Definition#include <unixaddress.h>
InheritsCoral::SocketAddress [virtual public]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Members


Detailed Description

This class manages an unix socket address.

UnixAddress ()

Constructor for an empty unix address.

UnixAddress (const UnixAddress& address)

Constructor for an unix address from an unix address.

Parameters:
addressUnix address.

UnixAddress (const char* name)

Constructor for a unix address given by a string. Examples: "/tmp/test.socket".

Parameters:
nameAddress string.

UnixAddress (sockaddr* address, cardinal length)

Constructor for a unix address from the system's sockaddr structure.

Parameters:
addresssockaddr.
lengthLength of sockaddr.

~UnixAddress ()

Destructor.

void reset ()

Reset unix address.

Reimplemented from SocketAddress

void init (const UnixAddress& address)

Initialize unix address from unix address.

void init (const char* name)

Initialize unix address from socket name.

inline UnixAddress& operator= (const UnixAddress& source)

Implementation of = operator.

bool isValid ()
[const]

isValid() implementation of SocketAddress.

See also: SocketAddress#isValid

Reimplemented from SocketAddress

inline bool isNull ()
[const]

Check, if the address is null.

Returns: true, if the address is not null; false otherwise.

String getAddressString ()
[const]

Get address string.

Returns: Address string.

Reimplemented from SocketAddress

cardinal getSystemAddress (sockaddr* buffer, const cardinal length, const cardinal type)
[const]

getSystemAddress() implementation of SocketAddress

See also: SocketAddress#getSystemAddress

Reimplemented from SocketAddress

bool setSystemAddress (sockaddr* address, const cardinal length)

setSystemAddress() implementation of SocketAddress.

See also: SocketAddress#setSystemAddress

Reimplemented from SocketAddress

int operator== (const UnixAddress& address)
[const]

Implementation of == operator.

inline int operator!= (const UnixAddress& address)
[const]

Implementation of != operator.

int operator< (const UnixAddress& address)
[const]

Implementation of < operator.

inline int operator<= (const UnixAddress& address)
[const]

Implementation of <= operator.

int operator> (const UnixAddress& address)
[const]

Implementation of > operator.

inline int operator>= (const UnixAddress& address)
[const]

Implementation of >= operator.