11 #ifndef ASIO_IP_ICMP_HPP 12 #define ASIO_IP_ICMP_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 89 return p1.protocol_ == p2.protocol_ && p1.family_ == p2.family_;
95 return p1.protocol_ != p2.protocol_ || p1.family_ != p2.family_;
100 explicit icmp(
int protocol_id,
int protocol_family)
101 : protocol_(protocol_id),
102 family_(protocol_family)
115 #endif // ASIO_IP_ICMP_HPP Describes an endpoint for a version-independent IP socket.
Encapsulates the flags needed for ICMP.
friend bool operator!=(const icmp &p1, const icmp &p2)
Compare two protocols for inequality.
basic_resolver< icmp > resolver
The ICMP resolver type.
int protocol() const
Obtain an identifier for the protocol.
basic_raw_socket< icmp > socket
The ICMP socket type.
int family() const
Obtain an identifier for the protocol family.
static icmp v4()
Construct to represent the IPv4 ICMP protocol.
Provides endpoint resolution functionality.
static icmp v6()
Construct to represent the IPv6 ICMP protocol.
basic_endpoint< icmp > endpoint
The type of a ICMP endpoint.
Provides raw-oriented socket functionality.
friend bool operator==(const icmp &p1, const icmp &p2)
Compare two protocols for equality.
int type() const
Obtain an identifier for the type of the protocol.