private void ProcessPacket(Reader _Reader, byte[] _Data)
 {
     try
     {
         Client _Client = ResourcesManager.GetClient(_Reader.Socket.Handle.ToInt64());
         _Client.DataStream.AddRange(_Data);
         Message p;
         while (_Client.TryGetPacket(out p))
         {
             PacketProcessor.Receive(p);
         }
     }
     catch
     {
     }
 }
Exemple #2
0
 private void ProcessPacket(Reader _Reader, byte[] _Data)
 {
     try
     {
         Client _Client = ResourcesManager.GetClient(_Reader.Socket.Handle);
         _Client.DataStream.AddRange(_Data);
         Message _Message;
         while (_Client.TryGetPacket(out _Message))
         {
             PacketProcessor.Receive(_Message);
         }
     }
     catch
     {
         Disconnect(_Reader.Socket);
         ResourcesManager.DropClient(_Reader.Socket.Handle);
     }
 }