11 #ifndef ASIO_IP_DETAIL_ENDPOINT_HPP 12 #define ASIO_IP_DETAIL_ENDPOINT_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 43 unsigned short port_num);
102 const endpoint& e1,
const endpoint& e2);
106 const endpoint& e1,
const endpoint& e2);
111 return data_.base.sa_family ==
ASIO_OS_DEF(AF_INET);
114 #if !defined(ASIO_NO_IOSTREAM) 117 #endif // !defined(ASIO_NO_IOSTREAM) 135 #if defined(ASIO_HEADER_ONLY) 137 #endif // defined(ASIO_HEADER_ONLY) 139 #endif // ASIO_IP_DETAIL_ENDPOINT_HPP endpoint & operator=(const endpoint &other)
ASIO_DECL friend bool operator==(const endpoint &e1, const endpoint &e2)
ASIO_DECL asio::ip::address address() const
asio::detail::socket_addr_type * data()
sockaddr_in sockaddr_in4_type
ASIO_DECL std::string to_string(asio::error_code &ec) const
sockaddr socket_addr_type
const asio::detail::socket_addr_type * data() const
ASIO_DECL friend bool operator<(const endpoint &e1, const endpoint &e2)
Implements version-independent IP addresses.
ASIO_DECL unsigned short port() const
Class to represent an error code value.
std::size_t capacity() const
sockaddr_in6 sockaddr_in6_type
ASIO_DECL void resize(std::size_t new_size)
endpoint(const endpoint &other)