BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Classes | Namespaces | Typedefs | Functions
asio.hpp File Reference
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/thread.hpp>
#include <vector>
#include <fc/thread/future.hpp>
#include <fc/io/iostream.hpp>

Go to the source code of this file.

Classes

class  fc::asio::detail::read_write_handler
 
class  fc::asio::detail::read_write_handler_with_buffer
 
struct  fc::asio::detail::non_blocking< C >
 
class  fc::asio::default_io_service_scope
 
class  fc::asio::istream< AsyncReadStream >
 
class  fc::asio::ostream< AsyncWriteStream >
 

Namespaces

 fc
 
 fc::asio
 defines fc wrappers for boost::asio functions.
 
 fc::asio::detail
 internal implementation types/methods for fc::asio
 
 fc::asio::tcp
 
 fc::asio::udp
 

Typedefs

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

Functions

void fc::asio::detail::read_write_handler_ec (promise< size_t > *p, boost::system::error_code *oec, const boost::system::error_code &ec, size_t bytes_transferred)
 
void fc::asio::detail::error_handler (const promise< void >::ptr &p, const boost::system::error_code &ec)
 
void fc::asio::detail::error_handler_ec (promise< boost::system::error_code > *p, const boost::system::error_code &ec)
 
boost::asio::io_service & fc::asio::default_io_service ()
 
template<typename AsyncReadStream , typename MutableBufferSequence >
size_t fc::asio::read (AsyncReadStream &s, const MutableBufferSequence &buf)
 wraps boost::asio::async_read More...
 
template<typename AsyncReadStream , typename MutableBufferSequence >
future< size_t > fc::asio::read_some (AsyncReadStream &s, const MutableBufferSequence &buf)
 
template<typename AsyncReadStream >
future< size_t > fc::asio::read_some (AsyncReadStream &s, char *buffer, size_t length, size_t offset=0)
 
template<typename AsyncReadStream >
future< size_t > fc::asio::read_some (AsyncReadStream &s, const std::shared_ptr< char > &buffer, size_t length, size_t offset)
 
template<typename AsyncReadStream , typename MutableBufferSequence >
void fc::asio::async_read_some (AsyncReadStream &s, const MutableBufferSequence &buf, promise< size_t >::ptr completion_promise)
 
template<typename AsyncReadStream >
void fc::asio::async_read_some (AsyncReadStream &s, char *buffer, size_t length, promise< size_t >::ptr completion_promise)
 
template<typename AsyncReadStream >
void fc::asio::async_read_some (AsyncReadStream &s, const std::shared_ptr< char > &buffer, size_t length, size_t offset, promise< size_t >::ptr completion_promise)
 
template<typename AsyncReadStream >
size_t fc::asio::read_some (AsyncReadStream &s, boost::asio::streambuf &buf)
 
template<typename AsyncWriteStream , typename ConstBufferSequence >
size_t fc::asio::write (AsyncWriteStream &s, const ConstBufferSequence &buf)
 wraps boost::asio::async_write More...
 
template<typename AsyncWriteStream , typename ConstBufferSequence >
future< size_t > fc::asio::write_some (AsyncWriteStream &s, const ConstBufferSequence &buf)
 wraps boost::asio::async_write_some More...
 
template<typename AsyncWriteStream >
future< size_t > fc::asio::write_some (AsyncWriteStream &s, const char *buffer, size_t length, size_t offset=0)
 
template<typename AsyncWriteStream >
future< size_t > fc::asio::write_some (AsyncWriteStream &s, const std::shared_ptr< const char > &buffer, size_t length, size_t offset)
 
template<typename AsyncWriteStream , typename ConstBufferSequence >
void fc::asio::async_write_some (AsyncWriteStream &s, const ConstBufferSequence &buf, promise< size_t >::ptr completion_promise)
 wraps boost::asio::async_write_some More...
 
template<typename AsyncWriteStream >
void fc::asio::async_write_some (AsyncWriteStream &s, const char *buffer, size_t length, promise< size_t >::ptr completion_promise)
 
template<typename AsyncWriteStream >
void fc::asio::async_write_some (AsyncWriteStream &s, const std::shared_ptr< const char > &buffer, size_t length, size_t offset, promise< size_t >::ptr completion_promise)
 
std::vector< endpoint > fc::asio::tcp::resolve (const std::string &hostname, const std::string &port)
 
template<typename SocketType , typename AcceptorType >
void fc::asio::tcp::accept (AcceptorType &acc, SocketType &sock)
 wraps boost::asio::async_accept More...
 
template<typename AsyncSocket , typename EndpointType >
void fc::asio::tcp::connect (AsyncSocket &sock, const EndpointType &ep)
 wraps boost::asio::socket::async_connect More...
 
std::vector< endpoint > fc::asio::udp::resolve (resolver &r, const std::string &hostname, const std::string &port)
 resolve all udp::endpoints for hostname:port More...