Inheritance: ITCPTransport
Example #1
0
 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();
 }
Example #2
0
 public TCPConnectionHelper(TCPTransport transport)
 {
     _transport = transport;
     _rand = new Random();
 }