BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Typedefs | Functions
fc::asio::tcp Namespace Reference

Typedefs

typedef boost::asio::ip::tcp::endpoint endpoint
 
typedef boost::asio::ip::tcp::resolver::iterator resolver_iterator
 
typedef boost::asio::ip::tcp::resolver resolver
 

Functions

std::vector< endpointresolve (const std::string &hostname, const std::string &port)
 
template<typename SocketType , typename AcceptorType >
void accept (AcceptorType &acc, SocketType &sock)
 wraps boost::asio::async_accept More...
 
template<typename AsyncSocket , typename EndpointType >
void connect (AsyncSocket &sock, const EndpointType &ep)
 wraps boost::asio::socket::async_connect More...
 

Typedef Documentation

◆ endpoint

typedef boost::asio::ip::tcp::endpoint fc::asio::tcp::endpoint

Definition at line 239 of file asio.hpp.

◆ resolver

typedef boost::asio::ip::tcp::resolver fc::asio::tcp::resolver

Definition at line 241 of file asio.hpp.

◆ resolver_iterator

typedef boost::asio::ip::tcp::resolver::iterator fc::asio::tcp::resolver_iterator

Definition at line 240 of file asio.hpp.

Function Documentation

◆ accept()

template<typename SocketType , typename AcceptorType >
void fc::asio::tcp::accept ( AcceptorType &  acc,
SocketType &  sock 
)

wraps boost::asio::async_accept

Postcondition
sock is connected
sock.non_blocking() == true
Exceptions
onerror.

Definition at line 250 of file asio.hpp.

◆ connect()

template<typename AsyncSocket , typename EndpointType >
void fc::asio::tcp::connect ( AsyncSocket &  sock,
const EndpointType &  ep 
)

wraps boost::asio::socket::async_connect

Postcondition
sock.non_blocking() == true
Exceptions
onerror

Definition at line 262 of file asio.hpp.

◆ resolve()

std::vector< boost::asio::ip::tcp::endpoint > fc::asio::tcp::resolve ( const std::string &  hostname,
const std::string &  port 
)

Definition at line 225 of file asio.cpp.