Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTstCustomSSHClient.CreateChannel

function CreateChannel(aWindowSize, aPacketSize: Integer) : iSSHClientChannel; overload;
Step 3: opens a new session channel with an explicit flow-control window and maximum packet size, then connects it. Use the parameterless overload to take DefaultWindowSize/DefaultPacketSize. Requires a prior successful Login (raises otherwise). This is the app's entry point for running a shell/exec/subsystem on the channel returned.
function CreateChannel: iSSHWindowedChannel; overload;
Convenience session-channel opener using DefaultWindowSize/DefaultPacketSize; the common case for opening a shell or exec channel.
function CreateChannel(const aHostToConnect : string; aPortToConnect : UInt32; const aOriginatorAddress: string; aOriginatorPort : UInt32) : iSSHClientChannel; overload;
Opens a "direct-tcpip" channel: the client asks the server to connect onward to aHostToConnect:aPortToConnect and tunnels that TCP stream over SSH (local port forwarding, -L in OpenSSH terms). aOriginatorAddress/Port describe the local peer for logging. Uses the default window/packet sizes.
function CreateChannel(aWindowSize, aPacketSize: Integer; const aHostToConnect : string; aPortToConnect : UInt32; const aOriginatorAddress: string; aOriginatorPort : UInt32) : iSSHClientChannel; overload;
Same direct-tcpip forwarding channel as above but with an explicit window and packet size; use when the default sizes are unsuitable for the tunnelled load.