11 #ifndef ASIO_IP_UDP_HPP 12 #define ASIO_IP_UDP_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 87 return p1.family_ == p2.family_;
93 return p1.family_ != p2.family_;
98 explicit udp(
int protocol_family)
99 : family_(protocol_family)
111 #endif // ASIO_IP_UDP_HPP Describes an endpoint for a version-independent IP socket.
static udp v6()
Construct to represent the IPv6 UDP protocol.
int type() const
Obtain an identifier for the type of the protocol.
Provides datagram-oriented socket functionality.
int protocol() const
Obtain an identifier for the protocol.
basic_endpoint< udp > endpoint
The type of a UDP endpoint.
Encapsulates the flags needed for UDP.
int family() const
Obtain an identifier for the protocol family.
static udp v4()
Construct to represent the IPv4 UDP protocol.
basic_datagram_socket< udp > socket
The UDP socket type.
basic_resolver< udp > resolver
The UDP resolver type.
Provides endpoint resolution functionality.
friend bool operator!=(const udp &p1, const udp &p2)
Compare two protocols for inequality.
friend bool operator==(const udp &p1, const udp &p2)
Compare two protocols for equality.