Example #1
0
        static async Task Main(string[] args)
        {
            Console.WriteLine("Starting server");
            var server = new SoupBinTCP.NET.Server(new ServerListener());

            server.Start();
            var command = "";

            while (command != "x")
            {
                command = Console.ReadLine();
            }
            await server.Shutdown();
        }
Example #2
0
        private static async Task RunServerAsync()
        {
            var server = new SoupBinTCP.NET.Server(new ServerListener());

            server.Start();

            string command = "";

            while (command != "x")
            {
                command = Console.ReadLine();
            }

            await Task.FromResult(false);

            server.Shutdown();
        }