コード例 #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
     }
 }
コード例 #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
     }
 }