|
RTP Trace System
1.0
|
#include <socketaddress.h>
Public Member Functions | |
| virtual void | reset ()=0 |
| virtual bool | isValid () const =0 |
| virtual String | getAddressString () const =0 |
| virtual cardinal | getSystemAddress (sockaddr *buffer, const socklen_t length, const cardinal type) const =0 |
| virtual bool | setSystemAddress (sockaddr *address, const socklen_t length)=0 |
Static Public Attributes | |
| static const cardinal | MaxSockLen |
| virtual String Coral::SocketAddress::getAddressString | ( | ) | const [pure virtual] |
Get address string.
Implemented in Coral::InternetAddress, Coral::UnixAddress, and Coral::InternetFlow.
| virtual cardinal Coral::SocketAddress::getSystemAddress | ( | sockaddr * | buffer, |
| const socklen_t | length, | ||
| const cardinal | type | ||
| ) | const [pure virtual] |
Get system's sockaddr structure for the address.
| buffer | Buffer to write sockaddr to. |
| length | Length of buffer. |
| type | AF_INET or AF_INET6. |
Implemented in Coral::InternetAddress, and Coral::InternetFlow.
| virtual bool Coral::SocketAddress::isValid | ( | ) | const [pure virtual] |
Check, if address is valid.
Implemented in Coral::InternetAddress, and Coral::UnixAddress.
| virtual void Coral::SocketAddress::reset | ( | ) | [pure virtual] |
Reset address.
Implemented in Coral::InternetAddress, Coral::UnixAddress, and Coral::InternetFlow.
| virtual bool Coral::SocketAddress::setSystemAddress | ( | sockaddr * | address, |
| const socklen_t | length | ||
| ) | [pure virtual] |
Initialize the internet address from the system's sockaddr structure. The sockaddr structure may be sockaddr_in (AF_INET) or sockaddr_in6 (AF_INET6).
| address | sockaddr. |
| length | Length of sockaddr (sizeof(sockaddr_in) or sizeof(sockaddr_in6)). |
Implemented in Coral::InternetAddress, and Coral::InternetFlow.
const cardinal Coral::SocketAddress::MaxSockLen [static] |
(sizeof(sockaddr_un) > sizeof(sockaddr_storage)) ? sizeof(sockaddr_un) : sizeof(sockaddr_storage)
Maximum sockaddr length in bytes.