Beispiel #1
0
 public static void Main()
 {
     TcpServer.MainServer server = new TcpServer.MainServer(8081);
     string cmd = "";
     while (true)
     {
         cmd = Console.ReadLine();
         switch(cmd)
         {
         case "list_players":
             server.ListPlayers();
             break;
         }
     }
 }
Beispiel #2
0
    public static void Main()
    {
        TcpServer.MainServer server = new TcpServer.MainServer(8081);
        string cmd = "";

        while (true)
        {
            cmd = Console.ReadLine();
            switch (cmd)
            {
            case "list_players":
                server.ListPlayers();
                break;
            }
        }
    }