ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
SshChannel Struct Reference

Per-connection channel state. More...

#include <connection.h>

Public Attributes

proto_bool open
 True once the channel is confirmed open both ways.
 
proto_bool pending
 True for a server-initiated channel we opened, awaiting the client's confirmation.
 
SshChanType type
 session, direct-tcpip, or forwarded-tcpip.
 
SshChanService service
 What a sec 6 request bound over a session channel, if anything.
 
uint32_t local_id
 Our channel id (== slot index).
 
uint32_t peer_id
 Client's channel id.
 
SshFlow flow
 RFC 4254 sec 5.2 window pair (owner: ssh_flow_control.*).
 
proto_bool eof_sent
 We sent CHANNEL_EOF (RFC 4254 sec 5.3).
 
proto_bool relay_eof
 The peer sent CHANNEL_EOF.
 
proto_bool close_sent
 We sent CHANNEL_CLOSE.
 
proto_bool close_received
 The peer sent CHANNEL_CLOSE.
 
proto_bool pty
 A "pty-req" was accepted on this channel.
 
uint32_t width_chars
 terminal width, characters
 
uint32_t height_rows
 terminal height, rows
 
uint32_t width_px
 terminal width, pixels
 
uint32_t height_px
 terminal height, pixels
 

Detailed Description

Per-connection channel state.

Definition at line 155 of file connection.h.

Member Data Documentation

◆ open

proto_bool SshChannel::open

True once the channel is confirmed open both ways.

Definition at line 157 of file connection.h.

◆ pending

proto_bool SshChannel::pending

True for a server-initiated channel we opened, awaiting the client's confirmation.

Definition at line 158 of file connection.h.

◆ type

SshChanType SshChannel::type

session, direct-tcpip, or forwarded-tcpip.

Definition at line 159 of file connection.h.

◆ service

SshChanService SshChannel::service

What a sec 6 request bound over a session channel, if anything.

Definition at line 160 of file connection.h.

◆ local_id

uint32_t SshChannel::local_id

Our channel id (== slot index).

Definition at line 161 of file connection.h.

◆ peer_id

uint32_t SshChannel::peer_id

Client's channel id.

Definition at line 162 of file connection.h.

◆ flow

SshFlow SshChannel::flow

RFC 4254 sec 5.2 window pair (owner: ssh_flow_control.*).

Definition at line 163 of file connection.h.

◆ eof_sent

proto_bool SshChannel::eof_sent

We sent CHANNEL_EOF (RFC 4254 sec 5.3).

Definition at line 164 of file connection.h.

◆ relay_eof

proto_bool SshChannel::relay_eof

The peer sent CHANNEL_EOF.

Definition at line 165 of file connection.h.

◆ close_sent

proto_bool SshChannel::close_sent

We sent CHANNEL_CLOSE.

Definition at line 169 of file connection.h.

◆ close_received

proto_bool SshChannel::close_received

The peer sent CHANNEL_CLOSE.

Definition at line 170 of file connection.h.

◆ pty

proto_bool SshChannel::pty

A "pty-req" was accepted on this channel.

Definition at line 173 of file connection.h.

◆ width_chars

uint32_t SshChannel::width_chars

terminal width, characters

Definition at line 174 of file connection.h.

◆ height_rows

uint32_t SshChannel::height_rows

terminal height, rows

Definition at line 175 of file connection.h.

◆ width_px

uint32_t SshChannel::width_px

terminal width, pixels

Definition at line 176 of file connection.h.

◆ height_px

uint32_t SshChannel::height_px

terminal height, pixels

Definition at line 177 of file connection.h.


The documentation for this struct was generated from the following file: