示例#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();
		}
	}
示例#2
0
文件: msg_server.cpp 项目: a1406/fytx
		void msg_server::client_connect_handler( tcp_session_ptr session,int error_value )
		{
			on_disconnect(session->get_net_id(),session);
			session->stop();
		}