39 class RLPXSocket:
public std::enable_shared_from_this<RLPXSocket>
46 void close() {
try { boost::system::error_code ec;
m_socket.shutdown(bi::tcp::socket::shutdown_both, ec);
if (
m_socket.is_open())
m_socket.close(); }
catch (...){} }
bi::tcp::endpoint remoteEndpoint()
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
Shared pointer wrapper for ASIO TCP socket.
RLPXSocket(ba::io_service &_ioService)