SshClientNotify¶
Client-side consumer interface. The session calls these as the connection progresses: it must approve or reject the server host key (ssh_verify_host_key → session.accept_host_key/reject_host_key), is told when the session is ready and authenticated (ssh_ready), and receives channel and error events. Every callback receives the session tag so the consumer can drive it.
Public Behaviours¶
ssh_verify_host_key¶
Parameters¶
- session: SshSession tag
- host: String val
- key: SshHostKey val
ssh_ready¶
Parameters¶
- session: SshSession tag
ssh_auth_failed¶
Parameters¶
- session: SshSession tag
- err: SshAuthError val
ssh_channel_opened¶
Parameters¶
- session: SshSession tag
- channel_id: U32 val
ssh_channel_request_result¶
Reports a peer reply to a channel request sent with want_reply set. The reply contains no request identifier. Wait for a result before sending another reply-seeking request on the same channel if its identity matters.
Parameters¶
- session: SshSession tag
- channel_id: U32 val
- accepted: Bool val
ssh_channel_data¶
Parameters¶
- session: SshSession tag
- channel_id: U32 val
- data: Array[U8 val] val
ssh_channel_error¶
Parameters¶
- session: SshSession tag
- channel_id: U32 val
- err: SshChannelError val
ssh_channel_send_result¶
Reports one result for each channel_send call. accepted counts the prefix admitted locally. data is the original submitted array. A blocked suffix remains the caller's responsibility.
be ssh_channel_send_result(
session: SshSession tag,
channel_id: U32 val,
data: Array[U8 val] val,
accepted: USize val,
outcome: SshSendOutcome)
Parameters¶
- session: SshSession tag
- channel_id: U32 val
- data: Array[U8 val] val
- accepted: USize val
- outcome: SshSendOutcome
ssh_channel_window_available¶
The peer granted credit after a blocked send. The hint is sent once until another send blocks; it does not reserve credit for a retry.
Parameters¶
- session: SshSession tag
- channel_id: U32 val
ssh_channel_closed¶
Parameters¶
- session: SshSession tag
- channel_id: U32 val
ssh_error¶
Parameters¶
- session: SshSession tag
- err: SshTransportError val
ssh_disconnected¶
Parameters¶
- session: SshSession tag