示例#1
0
 public CloudServer()
 {
     m_roomIPList = new List <IPEndPoint>();
     m_waitIPList = new List <IPEndPoint>();
     Listener     = new UdpListener();
     m_handle     = new LPTCHandle();
     m_handle.AddListener(Handle_C2S_BuildRoom);
     m_handle.AddListener(Handle_C2S_StartLinkRoom);
     m_handle.AddListener(Handle_C2S_EndLinkRoom);
     m_task = Task.Run(async() =>
     {
         while (true)
         {
             var recived = await Listener.Receive();
             Handle(recived);
         }
     });
 }
示例#2
0
 public void AddListeners()
 {
     Handle.AddListener(Handle_S2C_RoomIP);
 }