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