private static void Main() { var tcp = new Listen(); try { tcp.ListenFromSocket(11000); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } finally { Console.ReadLine(); } }