#include <socket.h>
Public Types | |
enum | address_type_t { ADDRESS_TYPE_UNSPEC = 0, ADDRESS_TYPE_INET = 1, ADDRESS_TYPE_INET6 = 2 } |
Public Member Functions | |
virtual u_result | getAddressAsString (char *buffer, size_t buffersize) const |
virtual address_type_t | getAddressType () const |
const void * | getPlatformData () const |
virtual int | getPort () const |
virtual u_result | getRawAddress (_u8 *buffer, size_t bufferSize) const |
SocketAddress & | operator= (const SocketAddress &) |
virtual u_result | setAddressFromString (const char *address_string, address_type_t=ADDRESS_TYPE_INET) |
virtual void | setAnyAddress (address_type_t=ADDRESS_TYPE_INET) |
virtual void | setBroadcastAddressIPv4 () |
virtual void | setLoopbackAddress (address_type_t=ADDRESS_TYPE_INET) |
virtual u_result | setPort (int port) |
SocketAddress () | |
SocketAddress (const char *addrString, int port, address_type_t=ADDRESS_TYPE_INET) | |
SocketAddress (void *platform_data) | |
SocketAddress (const SocketAddress &) | |
virtual | ~SocketAddress () |
Static Public Member Functions | |
static size_t | LoopUpHostName (const char *hostname, const char *sevicename, std::vector< SocketAddress > &addresspool, bool performDNS=true, address_type_t=ADDRESS_TYPE_INET) |
Protected Attributes | |
void * | _platform_data |
Definition at line 39 of file linux/net_socket.cpp.
rp::net::SocketAddress::SocketAddress | ( | const char * | addrString, |
int | port, | ||
SocketAddress::address_type_t | type = ADDRESS_TYPE_INET |
||
) |
Definition at line 55 of file linux/net_socket.cpp.
rp::net::SocketAddress::SocketAddress | ( | void * | platform_data | ) |
Definition at line 67 of file linux/net_socket.cpp.
rp::net::SocketAddress::SocketAddress | ( | const SocketAddress & | src | ) |
Definition at line 47 of file linux/net_socket.cpp.
rp::net::SocketAddress::~SocketAddress | ( | ) | [virtual] |
Definition at line 78 of file linux/net_socket.cpp.
u_result rp::net::SocketAddress::getAddressAsString | ( | char * | buffer, |
size_t | buffersize | ||
) | const [virtual] |
Definition at line 154 of file linux/net_socket.cpp.
SocketAddress::address_type_t rp::net::SocketAddress::getAddressType | ( | ) | const [virtual] |
Definition at line 83 of file linux/net_socket.cpp.
const void* rp::net::SocketAddress::getPlatformData | ( | ) | const [inline] |
int rp::net::SocketAddress::getPort | ( | ) | const [virtual] |
Definition at line 96 of file linux/net_socket.cpp.
u_result rp::net::SocketAddress::getRawAddress | ( | _u8 * | buffer, |
size_t | bufferSize | ||
) | const [virtual] |
Definition at line 216 of file linux/net_socket.cpp.
size_t rp::net::SocketAddress::LoopUpHostName | ( | const char * | hostname, |
const char * | sevicename, | ||
std::vector< SocketAddress > & | addresspool, | ||
bool | performDNS = true , |
||
SocketAddress::address_type_t | type = ADDRESS_TYPE_INET |
||
) | [static] |
Definition at line 175 of file linux/net_socket.cpp.
SocketAddress & rp::net::SocketAddress::operator= | ( | const SocketAddress & | src | ) |
Definition at line 71 of file linux/net_socket.cpp.
u_result rp::net::SocketAddress::setAddressFromString | ( | const char * | address_string, |
SocketAddress::address_type_t | type = ADDRESS_TYPE_INET |
||
) | [virtual] |
Definition at line 123 of file linux/net_socket.cpp.
void rp::net::SocketAddress::setAnyAddress | ( | SocketAddress::address_type_t | type = ADDRESS_TYPE_INET | ) | [virtual] |
Definition at line 276 of file linux/net_socket.cpp.
void rp::net::SocketAddress::setBroadcastAddressIPv4 | ( | ) | [virtual] |
Definition at line 265 of file linux/net_socket.cpp.
void rp::net::SocketAddress::setLoopbackAddress | ( | SocketAddress::address_type_t | type = ADDRESS_TYPE_INET | ) | [virtual] |
Definition at line 238 of file linux/net_socket.cpp.
u_result rp::net::SocketAddress::setPort | ( | int | port | ) | [virtual] |
Definition at line 108 of file linux/net_socket.cpp.
void* rp::net::SocketAddress::_platform_data [protected] |