SshSession.openDirectTcpIpChannel

SshChannelOpenOperation openDirectTcpIpChannel(string host, ushort port, string originatorAddress, ushort originatorPort, scope const SshChannelOpenOptions options = SshChannelOpenOptions .init)

Opens a direct TCP/IP channel to a destination reachable from the server.

Opening a direct channel is the policy decision: the caller chooses the destination and whether to open at all. An empty or oversized endpoint fails the operation locally with a typed error before anything is sent.

Parameters

hostDestination host as seen by the server.
portDestination port.
originatorAddressOriginator address reported to the server.
originatorPortOriginator port reported to the server.
optionsFlow-control parameters for the channel; a default constructed value selects the recommended defaults.

Returns

A stable open operation driven by session pumping.