Пример #1
0
 private static void SendUDPDataToAll(ServerPacket _packet)
 {
     _packet.WriteLength();
     for (int i = 1; i <= Server.MaxPlayers; i++)
     {
         Server.clients[i].udp.SendData(_packet);
     }
 }
Пример #2
0
 private static void SendTCPDataToAll(int _exceptClient, ServerPacket _packet)
 {
     _packet.WriteLength();
     for (int i = 1; i <= Server.MaxPlayers; i++)
     {
         if (i != _exceptClient)
         {
             Server.clients[i].tcp.SendData(_packet);
         }
     }
 }
Пример #3
0
 private static void SendTCPData(int _toClient, ServerPacket _packet)
 {
     _packet.WriteLength();
     Server.clients[_toClient].tcp.SendData(_packet);
 }