#include <source/ariba/utility/addressing/ip_address.hpp>
Inherits address_convenience< ip_address >.

Public Member Functions | |
| ip_address () | |
| ip_address (const ip_address ©) | |
| ip_address (const address &addr) | |
| ip_address (const address_v4 &addr) | |
| ip_address (const address_v6 &addr) | |
| ip_address (const std::string &text) | |
| ip_address (const char *text) | |
| ip_address (const uint8_t *bytes, size_t size) | |
| int | compare_to (const ip_address &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 ip_address &rhs) |
| Assigns an address. | |
| bool | is_multicast () const |
| bool | is_loopback () const |
| bool | is_link_local () const |
| bool | is_multicast_link_local () const |
| bool | is_multicast_node_local () const |
| bool | is_multicast_site_local () const |
| bool | is_any () const |
| bool | is_v4_compatible () const |
| bool | is_v4_mapped () |
| bool | is_v4 () const |
| bool | is_v6 () const |
| const address & | asio () const |
| void | asio (const address &addr) |
Static Public Member Functions | |
| static const std::string & | type_name () |
| static const uint16_t | type_id () |
Private Attributes | |
| address | addr |
Static Private Attributes | |
| static const std::string | type_name_ip = "ip" |
TODO: Doc
Definition at line 22 of file ip_address.hpp.
| ariba::addressing::ip_address::ip_address | ( | ) | [inline] |
Definition at line 28 of file ip_address.hpp.
| ariba::addressing::ip_address::ip_address | ( | const ip_address & | copy | ) | [inline] |
Definition at line 31 of file ip_address.hpp.
| ariba::addressing::ip_address::ip_address | ( | const address & | addr | ) | [inline] |
Definition at line 34 of file ip_address.hpp.
| ariba::addressing::ip_address::ip_address | ( | const address_v4 & | addr | ) | [inline] |
Definition at line 38 of file ip_address.hpp.
| ariba::addressing::ip_address::ip_address | ( | const address_v6 & | addr | ) | [inline] |
Definition at line 42 of file ip_address.hpp.
| ariba::addressing::ip_address::ip_address | ( | const std::string & | text | ) | [inline] |
Definition at line 46 of file ip_address.hpp.
References assign().
| ariba::addressing::ip_address::ip_address | ( | const char * | text | ) | [inline] |
Definition at line 50 of file ip_address.hpp.
References assign().
| ariba::addressing::ip_address::ip_address | ( | const uint8_t * | bytes, | |
| size_t | size | |||
| ) | [inline] |
Definition at line 54 of file ip_address.hpp.
References assign().
| void ariba::addressing::ip_address::asio | ( | const address & | addr | ) | [inline] |
Definition at line 202 of file ip_address.hpp.
| const address& ariba::addressing::ip_address::asio | ( | ) | const [inline] |
Definition at line 198 of file ip_address.hpp.
References addr.
Referenced by ariba::addressing::tcpip_endpoint::asio(), and ariba::addressing::tcpip_endpoint::to_string().
| bool ariba::addressing::ip_address::assign | ( | const ip_address & | rhs | ) | [inline] |
| bool ariba::addressing::ip_address::assign | ( | const std::string & | text | ) | [inline] |
Assigns an address using a human-readable.
Definition at line 117 of file ip_address.hpp.
References addr.
| bool ariba::addressing::ip_address::assign | ( | const uint8_t * | bytes, | |
| size_t | size | |||
| ) | [inline] |
Assigns an address using a bunch of bytes.
Definition at line 90 of file ip_address.hpp.
References addr.
Referenced by ariba::addressing::tcpip_endpoint::assign(), and ip_address().
| int ariba::addressing::ip_address::compare_to | ( | const ip_address & | rhs | ) | const [inline] |
implements comparison operators
Definition at line 61 of file ip_address.hpp.
References addr.
Referenced by ariba::addressing::tcpip_endpoint::compare_to().
| bool ariba::addressing::ip_address::is_any | ( | ) | const [inline] |
Definition at line 173 of file ip_address.hpp.
References addr.
| bool ariba::addressing::ip_address::is_bytes_size_static | ( | ) | const [inline] |
returns true, if this address has a fixed size in bytes
Definition at line 69 of file ip_address.hpp.
| bool ariba::addressing::ip_address::is_link_local | ( | ) | const [inline] |
Definition at line 152 of file ip_address.hpp.
References addr.
Referenced by ariba::communication::AddressDiscovery::discover_ip_addresses().
| bool ariba::addressing::ip_address::is_loopback | ( | ) | const [inline] |
Definition at line 147 of file ip_address.hpp.
References addr.
Referenced by ariba::addressing::endpoint_set::add(), and ariba::communication::AddressDiscovery::discover_ip_addresses().
| bool ariba::addressing::ip_address::is_multicast | ( | ) | const [inline] |
Definition at line 142 of file ip_address.hpp.
References addr.
| bool ariba::addressing::ip_address::is_multicast_link_local | ( | ) | const [inline] |
Definition at line 157 of file ip_address.hpp.
References addr.
| bool ariba::addressing::ip_address::is_multicast_node_local | ( | ) | const [inline] |
Definition at line 163 of file ip_address.hpp.
References addr.
| bool ariba::addressing::ip_address::is_multicast_site_local | ( | ) | const [inline] |
Definition at line 168 of file ip_address.hpp.
References addr.
| bool ariba::addressing::ip_address::is_v4 | ( | ) | const [inline] |
Definition at line 188 of file ip_address.hpp.
References addr.
| bool ariba::addressing::ip_address::is_v4_compatible | ( | ) | const [inline] |
Definition at line 178 of file ip_address.hpp.
References addr.
| bool ariba::addressing::ip_address::is_v4_mapped | ( | ) | [inline] |
Definition at line 183 of file ip_address.hpp.
References addr.
| bool ariba::addressing::ip_address::is_v6 | ( | ) | const [inline] |
Definition at line 192 of file ip_address.hpp.
References addr.
| void ariba::addressing::ip_address::to_bytes | ( | uint8_t * | bytes | ) | const [inline] |
converts this address to a binary representation
Definition at line 79 of file ip_address.hpp.
References addr.
Referenced by ariba::addressing::tcpip_endpoint::to_bytes().
| size_t ariba::addressing::ip_address::to_bytes_size | ( | ) | const [inline] |
returns the number of bytes used for serialization of this address
Definition at line 74 of file ip_address.hpp.
References addr.
Referenced by ariba::addressing::tcpip_endpoint::to_bytes(), ariba::addressing::tcpip_endpoint::to_bytes_size(), and ariba::addressing::endpoint_set::to_bytes_size().
| std::string ariba::addressing::ip_address::to_string | ( | ) | const [inline] |
convert address to a string that can be used to reconstruct the address
Definition at line 109 of file ip_address.hpp.
References addr.
Referenced by ariba::transport::convert(), boost::hash< ariba::addressing::ip_address >::operator()(), and ariba::addressing::tcpip_endpoint::to_string().
| static const uint16_t ariba::addressing::ip_address::type_id | ( | ) | [inline, static] |
Definition at line 136 of file ip_address.hpp.
| static const std::string& ariba::addressing::ip_address::type_name | ( | ) | [inline, static] |
Definition at line 132 of file ip_address.hpp.
References type_name_ip.
address ariba::addressing::ip_address::addr [private] |
Definition at line 24 of file ip_address.hpp.
Referenced by asio(), assign(), compare_to(), is_any(), is_link_local(), is_loopback(), is_multicast(), is_multicast_link_local(), is_multicast_node_local(), is_multicast_site_local(), is_v4(), is_v4_compatible(), is_v4_mapped(), is_v6(), to_bytes(), to_bytes_size(), and to_string().
const std::string ariba::addressing::ip_address::type_name_ip = "ip" [static, private] |
Definition at line 25 of file ip_address.hpp.
Referenced by type_name().
1.6.1