Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodtSSHClientChannelBroker.Connect

function Connect(const aChannel : iSSHClientChannelEvents; const aType : string; aWindowSize : UInt32; aPacketSize : UInt32) : UInt32; overload;
Allocates a free local-channel slot for aChannel and sends SSH_MSG_CHANNEL_OPEN of the given type ('session', 'direct-tcpip', ...) with the requested flow- control window and packet size. Returns the assigned local-channel id, or $FFFFFFFF if no slot is free. This is the low-level open used by tSSHClientChannel.Connect; apps normally use the client component's CreateChannel helpers instead of calling this.
function Connect(const aChannel : iSSHClientChannelEvents; const aType : string; aWindowSize : UInt32; aPacketSize : UInt32; const aBuf : tBytes) : UInt32; overload;
Same as above but appends aBuf as the channel-type-specific open payload (e.g. the target host/port and originator for a 'direct-tcpip' forwarding channel). Used internally by tSSHClientChannel.ConnectToHost.