BlitsMe.TransportEmulator.ProxyTransportManager.ProxyTransportManager C# (CSharp) Méthode

ProxyTransportManager() public méthode

public ProxyTransportManager ( TransportForm transportForm, bool client ) : System
transportForm TransportForm
client bool
Résultat System
        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();
        }