Beispiel #1
0
 //start tcp
 static private void case1()
 {
     try
     {
         server       = new ServerObject();
         listenThread = new Thread(new ThreadStart(server.Listen));
         listenThread.Start();
     }
     catch (Exception e)
     {
         server.Disconnect();
         Console.WriteLine(e);
         throw;
     }
 }