Renci.SshNet.ForwardedPortRemote.ForwardedPortRemote C# (CSharp) Method

ForwardedPortRemote() public method

Initializes a new instance of the ForwardedPortRemote class.
is null. is null. is greater than . is greater than .
public ForwardedPortRemote ( IPAddress boundHostAddress, uint boundPort, IPAddress hostAddress, uint port ) : System
boundHostAddress System.Net.IPAddress The bound host address.
boundPort uint The bound port.
hostAddress System.Net.IPAddress The host address.
port uint The port.
return System
        public ForwardedPortRemote(IPAddress boundHostAddress, uint boundPort, IPAddress hostAddress, uint port)
        {
            if (boundHostAddress == null)
                throw new ArgumentNullException("boundHostAddress");
            if (hostAddress == null)
                throw new ArgumentNullException("hostAddress");

            boundPort.ValidatePort("boundPort");
            port.ValidatePort("port");

            BoundHostAddress = boundHostAddress;
            BoundPort = boundPort;
            HostAddress = hostAddress;
            Port = port;
            _status = ForwardedPortStatus.Stopped;
        }

Same methods

ForwardedPortRemote::ForwardedPortRemote ( string boundHost, uint boundPort, string host, uint port ) : System
ForwardedPortRemote::ForwardedPortRemote ( uint boundPort, string host, uint port ) : System