14#ifndef DETERMINISTICESPASYNCWEBSERVER_SSH_CONN_H
15#define DETERMINISTICESPASYNCWEBSERVER_SSH_CONN_H
69int ssh_conn_send(uint8_t ssh_slot, uint32_t channel,
const uint8_t *data,
size_t len);
const struct ProtoHandler * ssh_proto_handler(void)
int ssh_conn_close_channel(uint8_t ssh_slot, uint32_t channel)
Close an SSH channel from the server side: frame CHANNEL_EOF and CHANNEL_CLOSE as two binary packets ...
int ssh_conn_open_forwarded(uint8_t ssh_slot, const char *conn_addr, uint16_t conn_port, const char *orig_addr, uint16_t orig_port)
Open a server-initiated "forwarded-tcpip" channel to the client (ssh -R): build the CHANNEL_OPEN (RFC...
void ssh_conn_rx(uint8_t conn_slot)
Drain conn_slot's receive ring buffer through the SSH stack.
void ssh_conn_accept(uint8_t conn_slot)
Handle a new ConnProto::PROTO_SSH connection on conn_slot.
void ssh_conn_poll(uint8_t conn_slot)
Per-loop poll hook for an SSH connection (registered as the SSH protocol handler's on_poll)....
int ssh_conn_send(uint8_t ssh_slot, uint32_t channel, const uint8_t *data, size_t len)
Send application data to the client over an SSH channel.
void ssh_conn_setup()
One-time setup: install the dispatcher's binary-packet emit callback.
void ssh_conn_close(uint8_t conn_slot)
Tear down SSH state for conn_slot (disconnect / error).
Per-protocol connection event/poll callbacks (Layer 5 dispatch vtable).