Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Executor()
- {
- while (true)
- {
- foreach (NetworkClient Client in Connection.UnIdentifiedClients)
- {
- Client.Receive();
- SignalClass Signal = Client.GetOldestSignal(); //this is a class that contains a message
- if (Signal.ToServer)
- {
- if (Signal.Destination < 0)
- {
- ServerCommands.NewMessage(Signal);
- }
- else
- {
- Lobbies[Signal.Destination].NewMessage(Signal);
- }
- }
- }
- Thread.Sleep(20);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment