RTP Audio System  2.0.0
UnixAddress Class Reference

Socket Address. More...

#include <unixaddress.h>

Inheritance diagram for UnixAddress:
SocketAddress

List of all members.

Public Member Functions

 UnixAddress ()
 UnixAddress (const UnixAddress &address)
 UnixAddress (const String &name)
 UnixAddress (const sockaddr *address, const cardinal length)
 ~UnixAddress ()
void reset ()
SocketAddressduplicate () const
void init (const UnixAddress &address)
void init (const String &name)
UnixAddressoperator= (const UnixAddress &source)
bool isValid () const
integer getFamily () const
String getAddressString (const cardinal format=PF_Default) const
bool isNull () const
card16 getPort () const
void setPort (const card16 port)
cardinal getSystemAddress (sockaddr *buffer, const socklen_t length, const cardinal type) const
bool setSystemAddress (const sockaddr *address, const socklen_t 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+1]

Static Private Attributes

static const cardinal MaxNameLength = 108 - 1

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.

UnixAddress::UnixAddress ( const UnixAddress address)

Constructor for an unix address from an unix address.

Parameters:
addressUnix address.
UnixAddress::UnixAddress ( const String name)

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

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

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

Parameters:
addresssockaddr.
lengthLength of sockaddr.

Destructor.


Member Function Documentation

SocketAddress * UnixAddress::duplicate ( ) const [virtual]

duplicate() implementation of SocketAddress.

See also:
SocketAddress::duplicate

Implements SocketAddress.

String UnixAddress::getAddressString ( const cardinal  format = PF_Default) const [virtual]

getAddressString() implementation of SocketAddress.

See also:
SocketAddress::getAddress

Implements SocketAddress.

integer UnixAddress::getFamily ( ) const [virtual]

getFamily() implementation of SocketAddress.

See also:
SocketAddress::getFamily

Implements SocketAddress.

card16 UnixAddress::getPort ( ) const [virtual]

getPort() implementation of SocketAddress.

See also:
SocketAddress::getPort

Implements SocketAddress.

cardinal UnixAddress::getSystemAddress ( sockaddr *  buffer,
const socklen_t  length,
const cardinal  type 
) const [virtual]
void UnixAddress::init ( const UnixAddress address)

Initialize unix address from unix address.

void UnixAddress::init ( const String name)

Initialize unix address from socket name.

bool UnixAddress::isNull ( ) const [inline]

Check, if the address is null.

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

isValid() implementation of SocketAddress.

See also:
SocketAddress::isValid

Implements SocketAddress.

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

Implementation of != operator.

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

Implementation of < operator.

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

Implementation of <= operator.

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

Implementation of = operator.

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

Implementation of == operator.

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

Implementation of > operator.

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

Implementation of >= operator.

void UnixAddress::reset ( ) [virtual]

Reset unix address.

Implements SocketAddress.

void UnixAddress::setPort ( const card16  port) [virtual]

setPort() implementation of SocketAddress.

See also:
SocketAddress::setPort

Implements SocketAddress.

bool UnixAddress::setSystemAddress ( const sockaddr *  address,
const socklen_t  length 
) [virtual]

Member Data Documentation

const cardinal UnixAddress::MaxNameLength = 108 - 1 [static, private]
char UnixAddress::Name[MaxNameLength+1] [private]

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