SSH.Channel.Open - charonn0/RB-libssh2 GitHub Wiki
SSH.Channel.Open
Method Signature
Shared Function Open(Session As SSH.Session, Type As String, WindowSize As UInt32, PacketSize As UInt32, Message As String) As SSH.Channel
Parameters
| Name | Type | Comment |
|---|---|---|
Session |
Session | An active SSH session to use. |
Type |
String | The request type. |
WindowSize |
UInt32 | The maximum amount of unacknowledged data remote host is allowed to send before receiving an SSH_MSG_CHANNEL_WINDOW_ADJUST packet. |
PacketSize |
UInt32 | The maximum number of bytes remote host is allowed to send in a single packet. |
Message |
String | Additional data as required by the selected channel Type. |
Return value
Returns an instance of Channel, or Nil on error. Check Session.GetLastError (not Session.LastError) for error details.
Remarks
Creates a new channel over the session.