Sirikata
|
Simple wrapper around Boost.Asio's tcp::acceptor, allowing for safe, cross-platform allocation and use. More...
#include <Asio.hpp>
Public Member Functions | |
TCPListener (IOService &io, const boost::asio::ip::tcp::endpoint &) | |
TCPListener (IOService *io, const boost::asio::ip::tcp::endpoint &) | |
virtual | ~TCPListener () |
void | async_accept (TCPSocket &socket, const std::tr1::function< void(const boost::system::error_code &) > &cb) |
Simple wrapper around Boost.Asio's tcp::acceptor, allowing for safe, cross-platform allocation and use.
Sirikata::Network::TCPListener::TCPListener | ( | IOService & | io, |
const boost::asio::ip::tcp::endpoint & | ep | ||
) |
Sirikata::Network::TCPListener::TCPListener | ( | IOService * | io, |
const boost::asio::ip::tcp::endpoint & | ep | ||
) |
Sirikata::Network::TCPListener::~TCPListener | ( | ) | [virtual] |
void Sirikata::Network::TCPListener::async_accept | ( | TCPSocket & | socket, |
const std::tr1::function< void(const boost::system::error_code &) > & | cb | ||
) |