public void Setup() { _remote = new TcpListener(9999); _remote.Start(); }
/// <summary> /// Initializes a new instance of the <see cref="CommunicationManager"/> class. /// </summary> public CommunicationManager(TcpListener listener) : this() { _listener = listener; _listener.ConnectionRequested += NewPeerConnected; }