#include <source/ariba/utility/addressing/port_address.hpp>
Inherits address_convenience< port_address_tpl< AddressInfo > >.
Public Types | |
typedef port_address_tpl < AddressInfo > | self |
Public Member Functions | |
port_address_tpl () | |
port_address_tpl (const port_address_tpl ©) | |
port_address_tpl (const std::string &text) | |
port_address_tpl (const char *text) | |
port_address_tpl (uint16_t port) | |
port_address_tpl (const uint8_t *bytes, size_t size) | |
int | compare_to (const self &rhs) const |
implements comparison operators | |
bool | is_bytes_size_static () const |
returns true, if this address has a fixed size in bytes | |
size_t | to_bytes_size () const |
returns the number of bytes used for serialization of this address | |
void | to_bytes (uint8_t *bytes) const |
converts this address to a binary representation | |
bool | assign (const uint8_t *bytes, size_t size) |
Assigns an address using a bunch of bytes. | |
std::string | to_string () const |
convert address to a string that can be used to reconstruct the address | |
bool | assign (const std::string &text) |
Assigns an address using a human-readable. | |
bool | assign (const self &rhs) |
Assigns an address. | |
const std::string & | type_name () const |
returns the type name | |
const uint16_t | type_id () const |
returns the type identifier | |
uint16_t | asio () const |
void | asio (uint16_t port) |
uint16_t | value () const |
void | value (uint16_t v) |
Private Attributes | |
uint16_t | port |
Definition at line 25 of file port_address.hpp.
typedef port_address_tpl<AddressInfo> ariba::addressing::port_address_tpl< AddressInfo >::self |
Definition at line 31 of file port_address.hpp.
ariba::addressing::port_address_tpl< AddressInfo >::port_address_tpl | ( | ) | [inline] |
Definition at line 33 of file port_address.hpp.
ariba::addressing::port_address_tpl< AddressInfo >::port_address_tpl | ( | const port_address_tpl< AddressInfo > & | copy | ) | [inline] |
Definition at line 37 of file port_address.hpp.
ariba::addressing::port_address_tpl< AddressInfo >::port_address_tpl | ( | const std::string & | text | ) | [inline] |
Definition at line 41 of file port_address.hpp.
ariba::addressing::port_address_tpl< AddressInfo >::port_address_tpl | ( | const char * | text | ) | [inline] |
Definition at line 45 of file port_address.hpp.
ariba::addressing::port_address_tpl< AddressInfo >::port_address_tpl | ( | uint16_t | port | ) | [inline] |
Definition at line 49 of file port_address.hpp.
ariba::addressing::port_address_tpl< AddressInfo >::port_address_tpl | ( | const uint8_t * | bytes, | |
size_t | size | |||
) | [inline] |
Definition at line 53 of file port_address.hpp.
void ariba::addressing::port_address_tpl< AddressInfo >::asio | ( | uint16_t | port | ) | [inline] |
Definition at line 134 of file port_address.hpp.
uint16_t ariba::addressing::port_address_tpl< AddressInfo >::asio | ( | ) | const [inline] |
Definition at line 130 of file port_address.hpp.
Referenced by ariba::addressing::tcpip_endpoint::asio(), and ariba::transport::convert().
bool ariba::addressing::port_address_tpl< AddressInfo >::assign | ( | const self & | rhs | ) | [inline] |
bool ariba::addressing::port_address_tpl< AddressInfo >::assign | ( | const std::string & | text | ) | [inline] |
bool ariba::addressing::port_address_tpl< AddressInfo >::assign | ( | const uint8_t * | bytes, | |
size_t | size | |||
) | [inline] |
Assigns an address using a bunch of bytes.
Definition at line 83 of file port_address.hpp.
Referenced by ariba::addressing::tcpip_endpoint::assign(), ariba::addressing::rfcomm_endpoint::assign(), and ariba::addressing::port_address_tpl< rfcomm_channel_address_info >::port_address_tpl().
int ariba::addressing::port_address_tpl< AddressInfo >::compare_to | ( | const self & | rhs | ) | const [inline] |
implements comparison operators
Definition at line 60 of file port_address.hpp.
Referenced by ariba::addressing::tcpip_endpoint::compare_to(), and ariba::addressing::rfcomm_endpoint::compare_to().
bool ariba::addressing::port_address_tpl< AddressInfo >::is_bytes_size_static | ( | ) | const [inline] |
returns true, if this address has a fixed size in bytes
Definition at line 67 of file port_address.hpp.
void ariba::addressing::port_address_tpl< AddressInfo >::to_bytes | ( | uint8_t * | bytes | ) | const [inline] |
converts this address to a binary representation
Definition at line 77 of file port_address.hpp.
Referenced by ariba::addressing::tcpip_endpoint::to_bytes(), and ariba::addressing::rfcomm_endpoint::to_bytes().
size_t ariba::addressing::port_address_tpl< AddressInfo >::to_bytes_size | ( | ) | const [inline] |
returns the number of bytes used for serialization of this address
Definition at line 72 of file port_address.hpp.
Referenced by ariba::addressing::tcpip_endpoint::to_bytes_size(), ariba::addressing::rfcomm_endpoint::to_bytes_size(), and ariba::addressing::endpoint_set::to_bytes_size().
std::string ariba::addressing::port_address_tpl< AddressInfo >::to_string | ( | ) | const [inline] |
convert address to a string that can be used to reconstruct the address
Definition at line 91 of file port_address.hpp.
Referenced by ariba::addressing::tcpip_endpoint::to_string(), and ariba::addressing::rfcomm_endpoint::to_string().
const uint16_t ariba::addressing::port_address_tpl< AddressInfo >::type_id | ( | ) | const [inline] |
const std::string& ariba::addressing::port_address_tpl< AddressInfo >::type_name | ( | ) | const [inline] |
void ariba::addressing::port_address_tpl< AddressInfo >::value | ( | uint16_t | v | ) | [inline] |
Definition at line 142 of file port_address.hpp.
uint16_t ariba::addressing::port_address_tpl< AddressInfo >::value | ( | ) | const [inline] |
Definition at line 138 of file port_address.hpp.
Referenced by ariba::transport::convert(), and boost::hash< ariba::addressing::port_address_tpl< T > >::operator()().
uint16_t ariba::addressing::port_address_tpl< AddressInfo >::port [private] |
Definition at line 28 of file port_address.hpp.
Referenced by ariba::addressing::port_address_tpl< rfcomm_channel_address_info >::asio(), ariba::addressing::port_address_tpl< rfcomm_channel_address_info >::assign(), ariba::addressing::port_address_tpl< rfcomm_channel_address_info >::compare_to(), ariba::addressing::port_address_tpl< rfcomm_channel_address_info >::port_address_tpl(), ariba::addressing::port_address_tpl< rfcomm_channel_address_info >::to_bytes(), ariba::addressing::port_address_tpl< rfcomm_channel_address_info >::to_string(), and ariba::addressing::port_address_tpl< rfcomm_channel_address_info >::value().