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();
}