Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::tcp_server::impl Class Reference

Public Member Functions

 impl ()
 
 ~impl ()
 

Public Attributes

boost::asio::ip::tcp::acceptor _accept
 

Detailed Description

Definition at line 241 of file tcp_socket.cpp.

Constructor & Destructor Documentation

◆ impl()

fc::tcp_server::impl::impl ( )
inline

Definition at line 243 of file tcp_socket.cpp.

244 :_accept( fc::asio::default_io_service() )
245 {
246 _accept.open(boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), 0).protocol());
247 }
boost::asio::ip::tcp::acceptor _accept

◆ ~impl()

fc::tcp_server::impl::~impl ( )
inline

Definition at line 249 of file tcp_socket.cpp.

249 {
250 try {
251 _accept.close();
252 }
253 catch ( boost::system::system_error& )
254 {
255 wlog( "unexpected exception ${e}", ("e", fc::except_str()) );
256 }
257 }
#define wlog(FORMAT,...)
Definition logger.hpp:124
std::string except_str()
Here is the call graph for this function:

Member Data Documentation

◆ _accept

boost::asio::ip::tcp::acceptor fc::tcp_server::impl::_accept

Definition at line 259 of file tcp_socket.cpp.


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