示例#1
0
    void handle_accept(tcp_connection::pointer new_connection, const boost::system::error_code& error)
    {
        if (!error)
            new_connection->start();

        start_accept();
    }
示例#2
0
void tcp_server::handle_accept(tcp_connection::pointer new_connection, const asio::error_code& error) {
    if (!error) {
        new_connection->start();
    }

    start_accept();
}
 void handler_accept(tcp_connection::pointer connection, boost::system::error_code& err)
 {
     if (!err)
     {
         connection->start();
     }
     start_accept();
 }
示例#4
0
	void handle_accept(tcp_connection::pointer new_connection, const boost::system::error_code& error)
	{
		if (!error)
		{
			new_connection->set_parser(default_parser_);
			new_connection->start();
		}

		start_accept();
	}
示例#5
0
文件: Test.cpp 项目: ibakula/XOX
	void handle_accept(tcp_connection::pointer new_connection,
		const boost::system::error_code& error)
	{
		if (!error)
		{
			new_connection->start();
			sLobby.AddPlayer(new_connection);
		}

		start_accept();
	}
示例#6
0
void TCPListener::rcv_handler(TCP_Connection::pointer conn, const boost::system::error_code& ec) {
    if (!ec) {
        conn->start();
    }
    TCPListener::begin();
}