Esempio n. 1
0
 public void ProcessAllServerData()
 {
     if (!Initialized)
     {
         return;
     }
     if (ServerPackets.GetLength() > (0xFFFF))
     {
         Debug.Print("S BACKLOG " + ServerPackets.GetLength());
     }
     while (ServerPackets.PacketAvailable())
     {
         ProcessServerData(); //aka one packet
     }
 }
Esempio n. 2
0
 public void ProcessAllClientData()
 {
     if (!Initialized)
     {
         return;
     }
     if (ClientPackets.GetLength() > (0xFFFF))
     {
         Debug.Print("C BACKLOG " + ClientPackets.GetLength());
     }
     while (ClientPackets.PacketAvailable())
     {
         ProcessClientData(); //aka one packet
     }
 }