Esempio n. 1
0
        static void Main(string[] args)
        {
            ConsoleCtrlHandler.CleanUpOnClose();

            var server = new ChatServer(IPAddress.Any, 5000);

            server.ClientConnected += (obj, e) => Console.WriteLine($"Client Connected\nIP: {e.Client.IP}\nPort: {e.Client.Port}");

            server.Listen();
        }