예제 #1
0
        private static void InnerMain()
        {
            using (var myListener = new MyListener(numOfThreads: 10)) {
                Console.WriteLine($"{AsyncSocket.Listener.IpAddress}:{myListener.Port}");

                Console.Write("Starting...");
                myListener.Start();
                Console.WriteLine("\nStart.");

                Handle(myListener).Wait();

                Console.Write("Press any key to stop...");
                Console.ReadKey();
                Console.Write("\nStopping...");
                myListener.Stop();
                Console.WriteLine("\nStop.");
            }

            Console.Write("Press any key to exit...");
            Console.ReadKey();
        }
예제 #2
0
 private static async Task Handle(MyListener listener)
 {
     //TODO: Manual testing...
     throw new NotImplementedException();
 }