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 Methods


Detailed Description

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:
addressUnix address.

 UnixAddress (const String& name)

UnixAddress

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

Parameters:
nameAddress string.

 UnixAddress (sockaddr* address, cardinal length)

UnixAddress

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

Parameters:
addresssockaddr.
lengthLength 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.