static void Main(string[] args) { CommandReceiver server = new CommandReceiver(); server.Open(); Console.WriteLine($"Started: port {server.Port}"); Console.ReadKey(); server.Close(); Console.WriteLine("Closed."); }
static void Main(string[] args) { CommandReceiver server = new CommandReceiver(); server.Open(); Console.WriteLine($"Started: port {server.Port}"); Console.ReadKey(); server.Close(); Console.WriteLine("Closed."); }