RTP Trace System
1.0
|
#include <unixaddress.h>
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) |
UnixAddress & | operator= (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 |
Constructor for an empty unix address.
Coral::UnixAddress::UnixAddress | ( | const UnixAddress & | address | ) |
Constructor for an unix address from an unix address.
address | Unix address. |
Coral::UnixAddress::UnixAddress | ( | const char * | name | ) |
Constructor for a unix address given by a string. Examples: "/tmp/test.socket".
name | Address string. |
Coral::UnixAddress::UnixAddress | ( | sockaddr * | address, |
cardinal | length | ||
) |
Constructor for a unix address from the system's sockaddr structure.
address | sockaddr. |
length | Length of sockaddr. |
Destructor.
String Coral::UnixAddress::getAddressString | ( | ) | const [virtual] |
cardinal Coral::UnixAddress::getSystemAddress | ( | sockaddr * | buffer, |
const cardinal | length, | ||
const cardinal | type | ||
) | const |
getSystemAddress() implementation of SocketAddress
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.
bool Coral::UnixAddress::isValid | ( | ) | const [virtual] |
isValid() implementation of SocketAddress.
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 | ||
) |
setSystemAddress() implementation of SocketAddress.
const cardinal Coral::UnixAddress::MaxNameLength = 108 [static, private] |
char Coral::UnixAddress::Name[MaxNameLength] [private] |