|
|
This class manages a packet socket address.
PacketAddress ()
| PacketAddress |
Constructor for an empty packet address.
PacketAddress (const PacketAddress& address)
| PacketAddress |
Constructor for an packet address from an packet address.
Parameters:
address | Packet address. |
PacketAddress (const String& name)
| PacketAddress |
Constructor for a packet address given by a string. Examples: "/tmp/test.socket".
Parameters:
name | Address string. |
PacketAddress (sockaddr* address, cardinal length)
| PacketAddress |
Constructor for a packet address from the system's sockaddr structure.
Parameters:
address | sockaddr. |
length | Length of sockaddr. |
~PacketAddress ()
| ~PacketAddress |
Destructor.
void reset ()
| reset |
Reset packet address.
Reimplemented from SocketAddress.
void init (const PacketAddress& address)
| init |
Initialize packet address from packet address.
void init (const String& name)
| init |
Initialize packet address from socket name.
inline PacketAddress& operator= (const PacketAddress& 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 PacketAddress& address)
| operator== |
[const]
Implementation of == operator.
inline int operator!= (const PacketAddress& address)
| operator!= |
[const]
Implementation of != operator.
int operator< (const PacketAddress& address)
| operator< |
[const]
Implementation of < operator.
inline int operator<= (const PacketAddress& address)
| operator<= |
[const]
Implementation of <= operator.
int operator> (const PacketAddress& address)
| operator> |
[const]
Implementation of > operator.
inline int operator>= (const PacketAddress& address)
| operator>= |
[const]
Implementation of >= operator.