Exemple #1
0
	void login_server::on_disconnect( int client_id,tcp_session_ptr conn_ptr )
	{
		if(conn_ptr->get_session_status()!=gs_connecting)
			conn_ptr->stop();
		else
			return;

		if(client_id == GATE_SVR_NET_ID)
		{
			_map_client.clear();
		}
	}
Exemple #2
0
		void msg_server::client_connect_handler( tcp_session_ptr session,int error_value )
		{
			on_disconnect(session->get_net_id(),session);
			session->stop();
		}