Terrarium.PeerToPeer.NetworkEngine.InitializeNetwork C# (CSharp) Method

InitializeNetwork() private method

private InitializeNetwork ( string peerChannel, Terrarium.Forms.TerrariumLed leds ) : void
peerChannel string
leds Terrarium.Forms.TerrariumLed
return void
        internal void InitializeNetwork(string peerChannel, TerrariumLed[] leds)
        {
            // Set up the LEDs
            _discoveryLed = leds[(int) LedIndicators.DiscoveryWebService];
            _peerConnectionLed = leds[(int) LedIndicators.PeerConnection];
            _receivedPeerConnectionLed = leds[(int) LedIndicators.PeerReceivedConnection];

            // Start listening on HTTP
            _peerChannel = peerChannel;
            //GlobalProxySelection.Select = GlobalProxySelection.GetEmptyWebProxy();
            WebRequest.DefaultWebProxy = null;
            SetHostIPInformation();
            StartHttpNamespaceManager();

            // Start our announcement thread
            announceThread = new Thread(AnnounceAndRegisterPeer) {Name = "Peer Discovery Thread"};
            announceThread.Start();
        }