Exemplo n.º 1
0
 public static int Main()
 {
     try
     {
         var ip   = GetIp();
         var port = GetPort();
         GameServer.StartServer(ip, port);
         GameServer.Listen();
     } catch (SocketException) {
         Console.Write("Failed to run server... Please check the IP address & port.\n");
         return(84);
     } catch (Exception) {
         Console.Write("An error occurred!\n");
         return(84);
     }
     return(0);
 }