public void BroadcastTCP(TcpMessage message)
 {
     foreach (Player client in clients)
     {
         client.SendTCP(message);
     }
 }
Esempio n. 2
0
 private void OutboundTCPSender()
 {
     try
     {
         while (true)
         {
             TcpMessage message = outgoingTCPQueue.Dequeue();
             message.Send(client);
         }
     }
     catch (Exception)
     {
         //TODO: close the client game
     }
 }
Esempio n. 3
0
 public void SendTCP(TcpMessage message)
 {
     outgoingTCPQueue.Enqueue(message);
 }