17#ifndef TOOLBOX_NET_ENDPOINT_HPP
18#define TOOLBOX_NET_ENDPOINT_HPP
24#include <boost/asio/generic/basic_endpoint.hpp>
25#include <boost/asio/ip/basic_endpoint.hpp>
26#include <boost/asio/local/basic_endpoint.hpp>
31template <
typename ProtocolT>
37template <
typename ProtocolT>
38using IpEndpoint = boost::asio::ip::basic_endpoint<ProtocolT>;
43template <
typename ProtocolT>
54 return {
ai->ai_addr,
ai->ai_addrlen,
ai->ai_protocol};
60 return {
ai->ai_addr,
ai->ai_addrlen,
ai->ai_protocol};
69inline namespace util {
TOOLBOX_API std::ostream & operator<<(std::ostream &os, const sockaddr_in &sa)
ostream & operator<<(ostream &os, const pair< T, U > &p)