Public Types | Public Member Functions | List of all members
util::FiberSyncSocket Class Reference

Public Types

using error_code = ::boost::system::error_code
 
using next_layer_type = ::boost::asio::ip::tcp::socket
 
using lowest_layer_type = next_layer_type::lowest_layer_type
 

Public Member Functions

 FiberSyncSocket (next_layer_type &&sock, size_t rbuf_size=1<< 12)
 
 FiberSyncSocket (const std::string &hname, const std::string &port, IoContext *cntx, size_t rbuf_size=1<< 12)
 Client socket constructor.
 
 FiberSyncSocket (FiberSyncSocket &&other)
 
error_code ClientWaitToConnect (uint32_t ms)
 
template<typename MBS >
size_t read_some (const MBS &bufs, error_code &ec)
 
template<typename MBS >
size_t read_some (const MBS &bufs)
 
template<typename BS >
size_t write_some (const BS &bufs, error_code &ec)
 
template<typename BS >
size_t write_some (const BS &bufs)
 
auto native_handle ()
 
bool is_open () const
 
void Shutdown (error_code &ec)
 
next_layer_type::endpoint_type remote_endpoint (error_code &ec) const
 
error_code status () const
 
next_layer_type & next_layer ()
 
lowest_layer_type & lowest_layer ()
 
IoContextcontext ()
 
bool keep_alive () const
 
void set_keep_alive (bool flag)
 

Detailed Description

Definition at line 15 of file fiber_socket.h.


The documentation for this class was generated from the following file: