SshChannelManager¶
Constructors¶
create¶
Returns¶
- SshChannelManager iso^
Public Functions¶
open_channel¶
Allocate local channel ID and create pending state.
Parameters¶
- channel_type: String val
Returns¶
- U32 val
confirm_channel¶
Confirm a pending channel open.
fun ref confirm_channel(
local_id: U32 val,
remote_id: U32 val,
remote_window: U32 val,
max_packet_size: U32 val)
: (None val | SshChannelError)
Parameters¶
Returns¶
- (None val | SshChannelError)
accept_channel¶
Accept an incoming channel open from remote (server side).
fun ref accept_channel(
local_id: U32 val,
remote_id: U32 val,
remote_window: U32 val,
max_packet_size: U32 val,
channel_type: String val)
: U32 val
Parameters¶
- local_id: U32 val
- remote_id: U32 val
- remote_window: U32 val
- max_packet_size: U32 val
- channel_type: String val
Returns¶
- U32 val
channel_data_send¶
Check window allows sending, return remote channel ID. Caller handles framing.
Parameters¶
Returns¶
- (U32 val | SshChannelError)
channel_data_received¶
Decrease local window after receiving data.
Parameters¶
Returns¶
- None val
window_adjust¶
Increase remote window for channel.
Parameters¶
Returns¶
- None val
local_window_adjust¶
Increase local window for channel (used when sending WINDOW_ADJUST to remote).
Parameters¶
Returns¶
- None val
close_channel¶
Remove channel state.
Parameters¶
- local_id: U32 val
Returns¶
- None val
find_by_remote_id¶
Find local ID for a remote channel ID.
Parameters¶
- remote_id: U32 val
Returns¶
get¶
Parameters¶
- local_id: U32 val
Returns¶
- (SshChannelState ref | None val)
channel_count¶
Returns¶
- USize val