Encapsulates the flags needed for UDP. More...
#include <udp.hpp>
Public Types | |
typedef basic_endpoint< udp > | endpoint |
The type of a UDP endpoint. | |
typedef basic_resolver< udp > | resolver |
The UDP resolver type. | |
typedef basic_resolver_iterator< udp > | resolver_iterator |
The type of a resolver iterator. | |
typedef basic_resolver_query< udp > | resolver_query |
The type of a resolver query. | |
typedef basic_datagram_socket < udp > | socket |
The UDP socket type. | |
Public Member Functions | |
int | family () const |
Obtain an identifier for the protocol family. | |
int | protocol () const |
Obtain an identifier for the protocol. | |
int | type () const |
Obtain an identifier for the type of the protocol. | |
Static Public Member Functions | |
static udp | v4 () |
Construct to represent the IPv4 UDP protocol. | |
static udp | v6 () |
Construct to represent the IPv6 UDP protocol. | |
Private Member Functions | |
udp (int family) | |
Private Attributes | |
int | family_ |
Friends | |
bool | operator!= (const udp &p1, const udp &p2) |
Compare two protocols for inequality. | |
bool | operator== (const udp &p1, const udp &p2) |
Compare two protocols for equality. |
Encapsulates the flags needed for UDP.
The asio::ip::udp class contains flags necessary for UDP sockets.
typedef basic_endpoint<udp> asio::ip::udp::endpoint |
typedef basic_resolver<udp> asio::ip::udp::resolver |
asio::ip::udp::udp | ( | int | family | ) | [inline, explicit, private] |
int asio::ip::udp::family | ( | ) | const [inline] |
int asio::ip::udp::protocol | ( | ) | const [inline] |
int asio::ip::udp::type | ( | ) | const [inline] |
static udp asio::ip::udp::v4 | ( | ) | [inline, static] |
static udp asio::ip::udp::v6 | ( | ) | [inline, static] |
int asio::ip::udp::family_ [private] |