Poderosa.PortForwarding.LocalToRemoteChannelFactory.WaitRequest C# (CSharp) Method

WaitRequest() public method

public WaitRequest ( ) : void
return void
        public override void WaitRequest()
        {
            _bindedLocalSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
            _bindedLocalSocket.Bind(new IPEndPoint(Util.ChannelProfileToListeningAddress(_profile), _profile.ListenPort));
            _bindedLocalSocket.Listen(30);
            _bindedLocalSocket.BeginAccept(new AsyncCallback(OnRequested), null);

            _established = true;
        }