Ejemplo n.º 1
0
 public Agent(int portnumber, int delay)
 {
     adapter = new Adapter(portnumber, delay);
 }
Ejemplo n.º 2
0
 public Server(int aPort, Adapter adapter)
 {
     _owner = adapter;
     mPort = aPort;
     serverSocket = new TcpListener(mPort);
     bListen = true;
     serverSocket.Start();
     ctThread = new Thread(ListenForClients);
     ctThread.Start();
 }