Пример #1
0
 public void startServer()
 {
     server = new RemoteServer();
     Thread serverThread = new Thread(new ThreadStart(this.serverThread));
     serverThread.Name = "serverThread";
     serverThread.Start();
 }
Пример #2
0
 public Listener(NetworkStream networkStream,RemoteServer server)
 {
     NS = networkStream;
     this.server = server;
     controller = new Controller();
     new Thread(new ThreadStart(this.startListener)).Start();
 }