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