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

        start_accept();
    }
Beispiel #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();
 }
	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();
	}
Beispiel #5
0
	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();
	}
Beispiel #6
0
void TCPListener::rcv_handler(TCP_Connection::pointer conn, const boost::system::error_code& ec) {
    if (!ec) {
        conn->start();
    }
    TCPListener::begin();
}