using System.Net; namespace Renci.SshNet { /// /// Provides functionality for remote port forwarding /// public partial class ForwardedPortRemote { /// /// Initializes a new instance of the class. /// /// The bound port. /// The host. /// The port. /// /// /// public ForwardedPortRemote(uint boundPort, string host, uint port) : this(string.Empty, boundPort, host, port) { } /// /// Initializes a new instance of the class. /// /// The bound host. /// The bound port. /// The host. /// The port. public ForwardedPortRemote(string boundHost, uint boundPort, string host, uint port) : this(Dns.GetHostEntry(boundHost).AddressList[0], boundPort, Dns.GetHostEntry(host).AddressList[0], port) { } } }