RTP Trace System  1.0
Coral::UnixAddress Class Reference

Socket Address. More...

#include <unixaddress.h>

Inheritance diagram for Coral::UnixAddress:
Coral::SocketAddress

List of all members.

Public Member Functions

 UnixAddress ()
 UnixAddress (const UnixAddress &address)
 UnixAddress (const char *name)
 UnixAddress (sockaddr *address, cardinal length)
 ~UnixAddress ()
void reset ()
void init (const UnixAddress &address)
void init (const char *name)
UnixAddressoperator= (const UnixAddress &source)
bool isValid () const
bool isNull () const
String getAddressString () const
cardinal getSystemAddress (sockaddr *buffer, const cardinal length, const cardinal type) const
bool setSystemAddress (sockaddr *address, const cardinal length)
int operator== (const UnixAddress &address) const
int operator!= (const UnixAddress &address) const
int operator< (const UnixAddress &address) const
int operator<= (const UnixAddress &address) const
int operator> (const UnixAddress &address) const
int operator>= (const UnixAddress &address) const

Private Attributes

char Name [MaxNameLength]

Static Private Attributes

static const cardinal MaxNameLength = 108

Detailed Description

Socket Address.

This class manages an unix socket address.

Author:
Thomas Dreibholz
Version:
1.0

Constructor & Destructor Documentation

Constructor for an empty unix address.

Constructor for an unix address from an unix address.

Parameters:
addressUnix address.
Coral::UnixAddress::UnixAddress ( const char *  name)

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

Parameters:
nameAddress string.
Coral::UnixAddress::UnixAddress ( sockaddr *  address,
cardinal  length 
)

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

Parameters:
addresssockaddr.
lengthLength of sockaddr.

Member Function Documentation

Get address string.

Returns:
Address string.

Implements Coral::SocketAddress.

cardinal Coral::UnixAddress::getSystemAddress ( sockaddr *  buffer,
const cardinal  length,
const cardinal  type 
) const
void Coral::UnixAddress::init ( const UnixAddress address)

Initialize unix address from unix address.

void Coral::UnixAddress::init ( const char *  name)

Initialize unix address from socket name.

bool Coral::UnixAddress::isNull ( ) const [inline]

Check, if the address is null.

Returns:
true, if the address is not null; false otherwise.
bool Coral::UnixAddress::isValid ( ) const [virtual]

isValid() implementation of SocketAddress.

See also:
SocketAddress::isValid

Implements Coral::SocketAddress.

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

Implementation of != operator.

int Coral::UnixAddress::operator< ( const UnixAddress address) const

Implementation of < operator.

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

Implementation of <= operator.

UnixAddress& Coral::UnixAddress::operator= ( const UnixAddress source) [inline]

Implementation of = operator.

int Coral::UnixAddress::operator== ( const UnixAddress address) const

Implementation of == operator.

int Coral::UnixAddress::operator> ( const UnixAddress address) const

Implementation of > operator.

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

Implementation of >= operator.

void Coral::UnixAddress::reset ( ) [virtual]

Reset unix address.

Implements Coral::SocketAddress.

bool Coral::UnixAddress::setSystemAddress ( sockaddr *  address,
const cardinal  length 
)

Member Data Documentation

const cardinal Coral::UnixAddress::MaxNameLength = 108 [static, private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines