Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
rp::net::SocketAddress Class Reference

#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
 
SocketAddressoperator= (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
 

Detailed Description

Definition at line 13 of file socket.h.

Member Enumeration Documentation

Enumerator
ADDRESS_TYPE_UNSPEC 
ADDRESS_TYPE_INET 
ADDRESS_TYPE_INET6 

Definition at line 17 of file socket.h.

Constructor & Destructor Documentation

rp::net::SocketAddress::SocketAddress ( )

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.

Member Function Documentation

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

Definition at line 47 of file socket.h.

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.

Member Data Documentation

void* rp::net::SocketAddress::_platform_data
protected

Definition at line 59 of file socket.h.


The documentation for this class was generated from the following files:


rplidar_ros
Author(s):
autogenerated on Wed Mar 20 2019 07:54:15