static void Main(string[] args) { if (args.Length == 0) { Startup.serverPort = 6000; } else { Startup.serverPort = int.Parse(args[0]); } /* * string ipAddress = "192.168.15.11"; * * SocketClientSettings settings = new SocketClientSettings(ipAddress, * 4050, Encoding.UTF8, 3, 1000); * * SocketConnectionFactory.SetDefaultSettings(settings); * * using (ISocketClientConnection conn = SocketConnectionFactory.GetConnection()) * { * * } */ Console.ForegroundColor = ConsoleColor.White; SocketServerHost.CreateHostBuilder() .UseStartup <Startup>() .Run(); }
static void Main(string[] args) { /* * Client.Configure("localhost", 4050, Encoding.UTF8, 1000000); * Handle(); */ Console.ForegroundColor = ConsoleColor.White; SocketServerHost.CreateHostBuilder() .UseStartup <Startup>() .Run(); }