#include <source/ariba/utility/addressing/rfcomm_endpoint.hpp>
Inherits address_convenience< rfcomm_endpoint >.
Public Types | |
typedef rfcomm_endpoint | self |
Public Member Functions | |
rfcomm_endpoint () | |
rfcomm_endpoint (const rfcomm_endpoint ©) | |
rfcomm_endpoint (const mac_address &mac, const rfcomm_channel_address &channel) | |
rfcomm_endpoint (const std::string &mac, const std::string &channel) | |
rfcomm_endpoint (const std::string &mac, uint16_t channel) | |
rfcomm_endpoint (const std::string &text) | |
rfcomm_endpoint (const char *text) | |
rfcomm_endpoint (const uint8_t *bytes, size_t size) | |
bool | assign (const self ©) |
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. | |
const string & | type_name () const |
returns the name of the address | |
uint16_t | type_id () const |
returns the id of the address | |
mac_address & | mac () |
const mac_address & | mac () const |
rfcomm_channel_address & | channel () |
const rfcomm_channel_address & | channel () const |
Private Attributes | |
mac_address | mac_ |
rfcomm_channel_address | channel_ |
Static Private Attributes | |
static const std::string | protocol_name = "rfcomm" |
Definition at line 30 of file rfcomm_endpoint.hpp.
Definition at line 37 of file rfcomm_endpoint.hpp.
ariba::addressing::rfcomm_endpoint::rfcomm_endpoint | ( | ) | [inline] |
Definition at line 40 of file rfcomm_endpoint.hpp.
ariba::addressing::rfcomm_endpoint::rfcomm_endpoint | ( | const rfcomm_endpoint & | copy | ) | [inline] |
ariba::addressing::rfcomm_endpoint::rfcomm_endpoint | ( | const mac_address & | mac, | |
const rfcomm_channel_address & | channel | |||
) | [inline] |
Definition at line 48 of file rfcomm_endpoint.hpp.
ariba::addressing::rfcomm_endpoint::rfcomm_endpoint | ( | const std::string & | mac, | |
const std::string & | channel | |||
) | [inline] |
Definition at line 52 of file rfcomm_endpoint.hpp.
ariba::addressing::rfcomm_endpoint::rfcomm_endpoint | ( | const std::string & | mac, | |
uint16_t | channel | |||
) | [inline] |
Definition at line 56 of file rfcomm_endpoint.hpp.
ariba::addressing::rfcomm_endpoint::rfcomm_endpoint | ( | const std::string & | text | ) | [inline] |
ariba::addressing::rfcomm_endpoint::rfcomm_endpoint | ( | const char * | text | ) | [inline] |
ariba::addressing::rfcomm_endpoint::rfcomm_endpoint | ( | const uint8_t * | bytes, | |
size_t | size | |||
) | [inline] |
bool ariba::addressing::rfcomm_endpoint::assign | ( | const std::string & | text | ) | [inline] |
Assigns an address using a human-readable.
Definition at line 118 of file rfcomm_endpoint.hpp.
References ariba::addressing::port_address_tpl< AddressInfo >::assign(), ariba::addressing::mac_address_tpl< AddressInfo >::assign(), channel_, and mac_.
bool ariba::addressing::rfcomm_endpoint::assign | ( | const uint8_t * | bytes, | |
size_t | size | |||
) | [inline] |
bool ariba::addressing::rfcomm_endpoint::assign | ( | const self & | copy | ) | [inline] |
Definition at line 72 of file rfcomm_endpoint.hpp.
References channel_, and mac_.
Referenced by rfcomm_endpoint().
const rfcomm_channel_address& ariba::addressing::rfcomm_endpoint::channel | ( | ) | const [inline] |
rfcomm_channel_address& ariba::addressing::rfcomm_endpoint::channel | ( | ) | [inline] |
Definition at line 152 of file rfcomm_endpoint.hpp.
References channel_.
Referenced by ariba::addressing::endpoint_set::add(), ariba::transport::convert(), and ariba::addressing::endpoint_set::remove().
int ariba::addressing::rfcomm_endpoint::compare_to | ( | const self & | rhs | ) | const [inline] |
implements comparison operators
Definition at line 81 of file rfcomm_endpoint.hpp.
References channel_, ariba::addressing::port_address_tpl< AddressInfo >::compare_to(), ariba::addressing::mac_address_tpl< AddressInfo >::compare_to(), and mac_.
bool ariba::addressing::rfcomm_endpoint::is_bytes_size_static | ( | ) | const [inline] |
returns true, if this address has a fixed size in bytes
Definition at line 89 of file rfcomm_endpoint.hpp.
const mac_address& ariba::addressing::rfcomm_endpoint::mac | ( | ) | const [inline] |
mac_address& ariba::addressing::rfcomm_endpoint::mac | ( | ) | [inline] |
Definition at line 144 of file rfcomm_endpoint.hpp.
References mac_.
Referenced by ariba::addressing::endpoint_set::add(), ariba::transport::convert(), ariba::addressing::endpoint_set::remove(), ariba::transport::rfcomm::send(), and ariba::transport::rfcomm::terminate().
void ariba::addressing::rfcomm_endpoint::to_bytes | ( | uint8_t * | bytes | ) | const [inline] |
converts this address to a binary representation
Definition at line 99 of file rfcomm_endpoint.hpp.
References channel_, mac_, ariba::addressing::port_address_tpl< AddressInfo >::to_bytes(), ariba::addressing::mac_address_tpl< AddressInfo >::to_bytes(), and ariba::addressing::mac_address_tpl< AddressInfo >::to_bytes_size().
size_t ariba::addressing::rfcomm_endpoint::to_bytes_size | ( | ) | const [inline] |
returns the number of bytes used for serialization of this address
Definition at line 94 of file rfcomm_endpoint.hpp.
References channel_, mac_, ariba::addressing::port_address_tpl< AddressInfo >::to_bytes_size(), and ariba::addressing::mac_address_tpl< AddressInfo >::to_bytes_size().
std::string ariba::addressing::rfcomm_endpoint::to_string | ( | ) | const [inline] |
convert address to a string that can be used to reconstruct the address
Definition at line 113 of file rfcomm_endpoint.hpp.
References channel_, mac_, ariba::addressing::port_address_tpl< AddressInfo >::to_string(), and ariba::addressing::mac_address_tpl< AddressInfo >::to_string().
Referenced by ariba::transport::rfcomm::handle_accept(), ariba::transport::rfcomm::handle_connect(), boost::hash< ariba::addressing::rfcomm_endpoint >::operator()(), and ariba::transport::rfcomm::send().
uint16_t ariba::addressing::rfcomm_endpoint::type_id | ( | ) | const [inline] |
const string& ariba::addressing::rfcomm_endpoint::type_name | ( | ) | const [inline] |
returns the name of the address
Definition at line 133 of file rfcomm_endpoint.hpp.
References protocol_name.
Definition at line 33 of file rfcomm_endpoint.hpp.
Referenced by assign(), channel(), compare_to(), to_bytes(), to_bytes_size(), and to_string().
Definition at line 32 of file rfcomm_endpoint.hpp.
Referenced by assign(), compare_to(), mac(), to_bytes(), to_bytes_size(), and to_string().
const std::string ariba::addressing::rfcomm_endpoint::protocol_name = "rfcomm" [static, private] |