Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
Endpoint.hpp File Reference
#include <toolbox/net/Protocol.hpp>
#include <toolbox/net/Socket.hpp>
#include <toolbox/util/TypeTraits.hpp>
#include <boost/asio/generic/basic_endpoint.hpp>
#include <boost/asio/ip/basic_endpoint.hpp>
#include <boost/asio/local/basic_endpoint.hpp>
Include dependency graph for Endpoint.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  toolbox::util::TypeTraits< DgramEndpoint >
 
struct  toolbox::util::TypeTraits< StreamEndpoint >
 

Namespaces

namespace  toolbox
 
namespace  toolbox::net
 
namespace  toolbox::util
 

Typedefs

template<typename ProtocolT >
using toolbox::net::BasicEndpoint = boost::asio::generic::basic_endpoint< ProtocolT >
 
using toolbox::net::DgramEndpoint = BasicEndpoint< DgramProtocol >
 
using toolbox::net::StreamEndpoint = BasicEndpoint< StreamProtocol >
 
template<typename ProtocolT >
using toolbox::net::IpEndpoint = boost::asio::ip::basic_endpoint< ProtocolT >
 
using toolbox::net::UdpEndpoint = IpEndpoint< UdpProtocol >
 
using toolbox::net::TcpEndpoint = IpEndpoint< TcpProtocol >
 
template<typename ProtocolT >
using toolbox::net::UnixEndpoint = boost::asio::local::basic_endpoint< ProtocolT >
 
using toolbox::net::UnixDgramEndpoint = UnixEndpoint< UnixDgramProtocol >
 
using toolbox::net::UnixStreamEndpoint = UnixEndpoint< UnixStreamProtocol >
 

Functions

AddrInfoPtr toolbox::net::parse_endpoint (string_view uri, int type)
 
DgramEndpoint toolbox::net::parse_dgram_endpoint (std::string_view uri)
 
StreamEndpoint toolbox::net::parse_stream_endpoint (std::string_view uri)
 
istream & toolbox::net::operator>> (istream &is, DgramEndpoint &ep)
 
istream & toolbox::net::operator>> (istream &is, StreamEndpoint &ep)
 
ostream & toolbox::net::operator<< (ostream &os, const DgramEndpoint &ep)
 
ostream & toolbox::net::operator<< (ostream &os, const StreamEndpoint &ep)
 
TOOLBOX_API std::ostream & operator<< (std::ostream &os, const sockaddr_in &sa)
 
TOOLBOX_API std::ostream & operator<< (std::ostream &os, const sockaddr_in6 &sa)
 
TOOLBOX_API std::ostream & operator<< (std::ostream &os, const sockaddr_un &sa)
 
TOOLBOX_API std::ostream & operator<< (std::ostream &os, const sockaddr &sa)
 
TOOLBOX_API std::ostream & operator<< (std::ostream &os, const addrinfo &ai)
 

Function Documentation

◆ operator<<() [1/5]

TOOLBOX_API std::ostream & operator<< ( std::ostream &  os,
const sockaddr_in &  sa 
)

Definition at line 180 of file Endpoint.cpp.

◆ operator<<() [2/5]

TOOLBOX_API std::ostream & operator<< ( std::ostream &  os,
const sockaddr_in6 &  sa 
)

Definition at line 187 of file Endpoint.cpp.

◆ operator<<() [3/5]

TOOLBOX_API std::ostream & operator<< ( std::ostream &  os,
const sockaddr_un &  sa 
)

Definition at line 194 of file Endpoint.cpp.

◆ operator<<() [4/5]

TOOLBOX_API std::ostream & operator<< ( std::ostream &  os,
const sockaddr &  sa 
)

Definition at line 199 of file Endpoint.cpp.

◆ operator<<() [5/5]

TOOLBOX_API std::ostream & operator<< ( std::ostream &  os,
const addrinfo &  ai 
)

Definition at line 213 of file Endpoint.cpp.