|
RTP Audio System
2.0.0
|
#include <unixaddress.h>
Public Member Functions | |
| UnixAddress () | |
| UnixAddress (const UnixAddress &address) | |
| UnixAddress (const String &name) | |
| UnixAddress (const sockaddr *address, const cardinal length) | |
| ~UnixAddress () | |
| void | reset () |
| SocketAddress * | duplicate () const |
| void | init (const UnixAddress &address) |
| void | init (const String &name) |
| UnixAddress & | operator= (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 |
Constructor for an empty unix address.
| UnixAddress::UnixAddress | ( | const UnixAddress & | address | ) |
Constructor for an unix address from an unix address.
| address | Unix address. |
| UnixAddress::UnixAddress | ( | const String & | name | ) |
Constructor for a unix address given by a string. Examples: "/tmp/test.socket".
| name | Address string. |
| UnixAddress::UnixAddress | ( | const sockaddr * | address, |
| const cardinal | length | ||
| ) |
Constructor for a unix address from the system's sockaddr structure.
| address | sockaddr. |
| length | Length of sockaddr. |
Destructor.
| SocketAddress * UnixAddress::duplicate | ( | ) | const [virtual] |
duplicate() implementation of SocketAddress.
Implements SocketAddress.
| String UnixAddress::getAddressString | ( | const cardinal | format = PF_Default | ) | const [virtual] |
getAddressString() implementation of SocketAddress.
Implements SocketAddress.
| integer UnixAddress::getFamily | ( | ) | const [virtual] |
getFamily() implementation of SocketAddress.
Implements SocketAddress.
| card16 UnixAddress::getPort | ( | ) | const [virtual] |
getPort() implementation of SocketAddress.
Implements SocketAddress.
| cardinal UnixAddress::getSystemAddress | ( | sockaddr * | buffer, |
| const socklen_t | length, | ||
| const cardinal | type | ||
| ) | const [virtual] |
getSystemAddress() implementation of SocketAddress
Implements SocketAddress.
| 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.
| bool UnixAddress::isValid | ( | ) | const [virtual] |
isValid() implementation of SocketAddress.
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.
Implements SocketAddress.
| bool UnixAddress::setSystemAddress | ( | const sockaddr * | address, |
| const socklen_t | length | ||
| ) | [virtual] |
setSystemAddress() implementation of SocketAddress.
Implements SocketAddress.
const cardinal UnixAddress::MaxNameLength = 108 - 1 [static, private] |
char UnixAddress::Name[MaxNameLength+1] [private] |