Esempio n. 1
0
 private void OnServerCommandReceived(ServerCommand command)
 {
     Console.WriteLine("<<< SRV: " + command.Serialize());
     switch (command.Type)
     {
     case ServerCommandType.HLO:
     case ServerCommandType.VAR:
         introMessages.Add(command);
         return;
     }
     foreach (var connection in connections.Values)
     {
         connection.SendOrEnqueue(command);
     }
     clientConnectingHandle.WaitOne();
 }