Robotics Library  0.7.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
rl::hal::Socket::Address Class Reference

#include <Socket.h>

Public Member Functions

 Address ()
 
 Address (const Address &address)
 
 Address (const ::sockaddr_storage &addr)
 
virtual ~Address ()
 
const ::sockaddr_storage & get () const
 
::std::vector< unsigned char > getHexadecimal ()
 
::std::string getNameInfo (const bool &asNumeric=false) const
 
void setInfo (const ::std::string &string, const unsigned short int &port, const bool &asNumeric=false)
 
void setInfo (const ::std::string &string, const ::std::string &port, const bool &asNumeric=false)
 

Static Public Member Functions

static Address Ipv4 (const ::std::string &string, const unsigned short int &port, const bool &asNumeric=false)
 
static Address Ipv4 (const ::std::string &string, const ::std::string &port, const bool &asNumeric=false)
 
static Address Ipv6 (const ::std::string &string, const unsigned short int &port, const bool &asNumeric=false)
 
static Address Ipv6 (const ::std::string &string, const ::std::string &port, const bool &asNumeric=false)
 

Protected Member Functions

 Address (const int &family)
 

Private Attributes

::sockaddr_storage addr
 

Constructor & Destructor Documentation

◆ Address() [1/4]

rl::hal::Socket::Address::Address ( )

◆ Address() [2/4]

rl::hal::Socket::Address::Address ( const Address address)

◆ Address() [3/4]

rl::hal::Socket::Address::Address ( const ::sockaddr_storage &  addr)

◆ ~Address()

rl::hal::Socket::Address::~Address ( )
virtual

◆ Address() [4/4]

rl::hal::Socket::Address::Address ( const int &  family)
protected

Member Function Documentation

◆ get()

const ::sockaddr_storage & rl::hal::Socket::Address::get ( ) const

◆ getHexadecimal()

std::vector< unsigned char > rl::hal::Socket::Address::getHexadecimal ( )

◆ getNameInfo()

std::string rl::hal::Socket::Address::getNameInfo ( const bool &  asNumeric = false) const

◆ Ipv4() [1/2]

Socket::Address rl::hal::Socket::Address::Ipv4 ( const ::std::string &  string,
const ::std::string &  port,
const bool &  asNumeric = false 
)
static

◆ Ipv4() [2/2]

Socket::Address rl::hal::Socket::Address::Ipv4 ( const ::std::string &  string,
const unsigned short int &  port,
const bool &  asNumeric = false 
)
static

◆ Ipv6() [1/2]

Socket::Address rl::hal::Socket::Address::Ipv6 ( const ::std::string &  string,
const ::std::string &  port,
const bool &  asNumeric = false 
)
static

◆ Ipv6() [2/2]

Socket::Address rl::hal::Socket::Address::Ipv6 ( const ::std::string &  string,
const unsigned short int &  port,
const bool &  asNumeric = false 
)
static

◆ setInfo() [1/2]

void rl::hal::Socket::Address::setInfo ( const ::std::string &  string,
const ::std::string &  port,
const bool &  asNumeric = false 
)

◆ setInfo() [2/2]

void rl::hal::Socket::Address::setInfo ( const ::std::string &  string,
const unsigned short int &  port,
const bool &  asNumeric = false 
)

Member Data Documentation

◆ addr

::sockaddr_storage rl::hal::Socket::Address::addr
private

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