|
rippled
|
A version-independent IP address and port combination. More...

Public Member Functions | |
| Endpoint () | |
| Create an unspecified endpoint. More... | |
| Endpoint (Address const &addr, Port port=0) | |
| Create an endpoint from the address and optional port. More... | |
| std::string | to_string () const |
| Returns a string representing the endpoint. More... | |
| Port | port () const |
| Returns the port number on the endpoint. More... | |
| Endpoint | at_port (Port port) const |
| Returns a new Endpoint with a different port. More... | |
| Address const & | address () const |
| Returns the address portion of this endpoint. More... | |
| bool | is_v4 () const |
| Convenience accessors for the address part. More... | |
| bool | is_v6 () const |
| const AddressV4 | to_v4 () const |
| const AddressV6 | to_v6 () const |
Static Public Member Functions | |
| static boost::optional< Endpoint > | from_string_checked (std::string const &s) |
| Create an Endpoint from a string. More... | |
| static Endpoint | from_string (std::string const &s) |
Private Attributes | |
| Address | m_addr |
| Port | m_port |
Friends | |
| template<class Hasher > | |
| void | hash_append (Hasher &h, Endpoint const &endpoint) |
| bool | operator== (Endpoint const &lhs, Endpoint const &rhs) |
| Arithmetic comparison. More... | |
| bool | operator< (Endpoint const &lhs, Endpoint const &rhs) |
| bool | operator!= (Endpoint const &lhs, Endpoint const &rhs) |
| bool | operator> (Endpoint const &lhs, Endpoint const &rhs) |
| bool | operator<= (Endpoint const &lhs, Endpoint const &rhs) |
| bool | operator>= (Endpoint const &lhs, Endpoint const &rhs) |
A version-independent IP address and port combination.
Definition at line 39 of file IPEndpoint.h.
| beast::IP::Endpoint::Endpoint | ( | ) |
Create an unspecified endpoint.
Definition at line 26 of file IPEndpoint.cpp.
Create an endpoint from the address and optional port.
Definition at line 30 of file IPEndpoint.cpp.
|
static |
Create an Endpoint from a string.
If the port is omitted, the endpoint will have a zero port.
boost::none on failure Definition at line 35 of file IPEndpoint.cpp.
|
static |
Definition at line 46 of file IPEndpoint.cpp.
| std::string beast::IP::Endpoint::to_string | ( | ) | const |
Returns a string representing the endpoint.
Definition at line 54 of file IPEndpoint.cpp.
| Port beast::IP::Endpoint::port | ( | ) | const |
Returns the port number on the endpoint.
Definition at line 63 of file IPEndpoint.h.
Returns a new Endpoint with a different port.
Definition at line 70 of file IPEndpoint.h.
| Address const& beast::IP::Endpoint::address | ( | ) | const |
Returns the address portion of this endpoint.
Definition at line 77 of file IPEndpoint.h.
| bool beast::IP::Endpoint::is_v4 | ( | ) | const |
Convenience accessors for the address part.
Definition at line 85 of file IPEndpoint.h.
| bool beast::IP::Endpoint::is_v6 | ( | ) | const |
Definition at line 90 of file IPEndpoint.h.
| const AddressV4 beast::IP::Endpoint::to_v4 | ( | ) | const |
Definition at line 95 of file IPEndpoint.h.
| const AddressV6 beast::IP::Endpoint::to_v6 | ( | ) | const |
Definition at line 100 of file IPEndpoint.h.
Arithmetic comparison.
Definition at line 75 of file IPEndpoint.cpp.
Definition at line 81 of file IPEndpoint.cpp.
Definition at line 114 of file IPEndpoint.h.
Definition at line 119 of file IPEndpoint.h.
Definition at line 124 of file IPEndpoint.h.
Definition at line 129 of file IPEndpoint.h.
|
friend |
Definition at line 137 of file IPEndpoint.h.
|
private |
Definition at line 144 of file IPEndpoint.h.
|
private |
Definition at line 145 of file IPEndpoint.h.
1.8.17