BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface 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

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

Definition at line 240 of file asio.hpp.

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

Definition at line 242 of file asio.hpp.

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

Definition at line 241 of file asio.hpp.

Function Documentation

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 251 of file asio.hpp.

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 263 of file asio.hpp.

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

Definition at line 188 of file asio.cpp.