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