Describes an endpoint for any socket type. More...
#include <basic_endpoint.hpp>
Public Types | |
typedef Protocol | protocol_type |
The protocol type associated with the endpoint. More... | |
typedef boost::asio::detail::socket_addr_type | data_type |
The type of the endpoint structure. More... | |
Public Member Functions | |
basic_endpoint () | |
Default constructor. More... | |
basic_endpoint (const void *socket_address, std::size_t socket_address_size, int socket_protocol=0) | |
Construct an endpoint from the specified socket address. More... | |
template<typename Endpoint > | |
basic_endpoint (const Endpoint &endpoint) | |
Construct an endpoint from the specific endpoint type. More... | |
basic_endpoint (const basic_endpoint &other) | |
Copy constructor. More... | |
basic_endpoint & | operator= (const basic_endpoint &other) |
Assign from another endpoint. More... | |
protocol_type | protocol () const |
The protocol associated with the endpoint. More... | |
data_type * | data () |
Get the underlying endpoint in the native type. More... | |
const data_type * | data () const |
Get the underlying endpoint in the native type. More... | |
std::size_t | size () const |
Get the underlying size of the endpoint in the native type. More... | |
void | resize (std::size_t new_size) |
Set the underlying size of the endpoint in the native type. More... | |
std::size_t | capacity () const |
Get the capacity of the endpoint in the native type. More... | |
Friends | |
bool | operator== (const basic_endpoint< Protocol > &e1, const basic_endpoint< Protocol > &e2) |
Compare two endpoints for equality. More... | |
bool | operator!= (const basic_endpoint< Protocol > &e1, const basic_endpoint< Protocol > &e2) |
Compare two endpoints for inequality. More... | |
bool | operator< (const basic_endpoint< Protocol > &e1, const basic_endpoint< Protocol > &e2) |
Compare endpoints for ordering. More... | |
bool | operator> (const basic_endpoint< Protocol > &e1, const basic_endpoint< Protocol > &e2) |
Compare endpoints for ordering. More... | |
bool | operator<= (const basic_endpoint< Protocol > &e1, const basic_endpoint< Protocol > &e2) |
Compare endpoints for ordering. More... | |
bool | operator>= (const basic_endpoint< Protocol > &e1, const basic_endpoint< Protocol > &e2) |
Compare endpoints for ordering. More... | |
Describes an endpoint for any socket type.
The boost::asio::generic::basic_endpoint class template describes an endpoint that may be associated with any socket type.
sockaddr_storage
structure.typedef boost::asio::detail::socket_addr_type boost::asio::generic::basic_endpoint< Protocol >::data_type |
The type of the endpoint structure.
This type is dependent on the underlying implementation of the socket layer.
typedef Protocol boost::asio::generic::basic_endpoint< Protocol >::protocol_type |
The protocol type associated with the endpoint.
|
inline |
Default constructor.
|
inline |
Construct an endpoint from the specified socket address.
|
inline |
Construct an endpoint from the specific endpoint type.
|
inline |
Copy constructor.
|
inline |
Get the capacity of the endpoint in the native type.
|
inline |
Get the underlying endpoint in the native type.
|
inline |
Get the underlying endpoint in the native type.
|
inline |
Assign from another endpoint.
|
inline |
The protocol associated with the endpoint.
|
inline |
Set the underlying size of the endpoint in the native type.
|
inline |
Get the underlying size of the endpoint in the native type.
|
friend |
Compare two endpoints for inequality.
|
friend |
Compare endpoints for ordering.
|
friend |
Compare endpoints for ordering.
|
friend |
Compare two endpoints for equality.
|
friend |
Compare endpoints for ordering.
|
friend |
Compare endpoints for ordering.