public ProxyTransportManager(TransportForm transportForm, bool client) { _isActive = true; OnActive(EventArgs.Empty); stopwatch = new Stopwatch(); _transportForm = transportForm; _client = client; rand = new Random(); ; TCPTransport = new TCPTransport(this); PhysicalLayer = Queue.Synchronized(new Queue()); _physicalTransporterThread = new Thread(PhysicalLayerPump) { IsBackground = true, Name = _client ? "ClientReceiveThread" : "ServerReceiveThread" }; _physicalTransporterThread.Start(); }
public TCPConnectionHelper(TCPTransport transport) { _transport = transport; _rand = new Random(); }