Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes
rp::net::SocketAddress Class Reference

#include <socket.h>

List of all members.

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

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.

Definition at line 47 of file linux/net_socket.cpp.

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.

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.

Definition at line 123 of file linux/net_socket.cpp.

Definition at line 276 of file linux/net_socket.cpp.

Definition at line 265 of file linux/net_socket.cpp.

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

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 Mon Mar 18 2019 02:34:23