public static void Main(string[] args) { var server = new SocketServer(IPAddress.Parse(Ip), Port); server.Start(); var input = string.Empty; while (input.ToLower() != "q") { Console.WriteLine("Enter 'Q' or 'q' to exit."); input = Console.ReadLine().ToLower(); } server.Stop(); server.Dispose(); }
public void Stop() { Logger.Log(this, "Stopped"); SocketServer.Dispose(); Active = false; }