Exemplo n.º 1
0
 static void Main(string[] args)
 {
     try
     {
         server       = new ServerClass();
         listenThread = new Thread(new ThreadStart(server.Listen));
         listenThread.Start();
     }
     catch (Exception ex)
     {
         server.Disconnect();
         Console.WriteLine(ex.Message);
     }
 }