29 : m_acceptor(
g_ioService, asio::ip::tcp::endpoint(asio::ip::tcp::v4(), port))
39 catch(
const std::exception& e) {
56 auto self = static_self_cast<Server>();
57 m_acceptor.async_accept(connection->
m_socket, [=](
const boost::system::error_code& error) {
59 connection->m_connected = true;
60 connection->m_connecting = false;
62 self->callLuaField(
"onAccept", connection, error.message(), error.value());