Zephyr API 3.6.99
Loading...
Searching...
No Matches
shell_telnet Struct Reference

TELNET-based shell transport. More...

#include <shell_telnet.h>

Data Fields

shell_transport_handler_t shell_handler
 Handler function registered by shell.
 
void * shell_context
 Context registered by shell.
 
struct shell_telnet_line_buf line_out
 Buffer for outgoing line.
 
struct zsock_pollfd fds [3]
 Array for sockets used by the telnet service.
 
uint8_t rx_buf [CONFIG_SHELL_CMD_BUFF_SIZE]
 Input buffer.
 
size_t rx_len
 Number of data bytes within the input buffer.
 
struct k_mutex rx_lock
 Mutex protecting the input buffer access.
 
uint8_t cmd_buf [3]
 
uint8_t cmd_len
 
struct k_work_delayable send_work
 The delayed work is used to send non-lf terminated output that has been around for "too long".
 
struct k_work_sync work_sync
 
bool output_lock
 If set, no output is sent to the TELNET client.
 

Detailed Description

TELNET-based shell transport.

Field Documentation

◆ cmd_buf

uint8_t shell_telnet::cmd_buf[3]

◆ cmd_len

uint8_t shell_telnet::cmd_len

◆ fds

struct zsock_pollfd shell_telnet::fds[3]

Array for sockets used by the telnet service.

◆ line_out

struct shell_telnet_line_buf shell_telnet::line_out

Buffer for outgoing line.

◆ output_lock

bool shell_telnet::output_lock

If set, no output is sent to the TELNET client.

◆ rx_buf

uint8_t shell_telnet::rx_buf[CONFIG_SHELL_CMD_BUFF_SIZE]

Input buffer.

◆ rx_len

size_t shell_telnet::rx_len

Number of data bytes within the input buffer.

◆ rx_lock

struct k_mutex shell_telnet::rx_lock

Mutex protecting the input buffer access.

◆ send_work

struct k_work_delayable shell_telnet::send_work

The delayed work is used to send non-lf terminated output that has been around for "too long".

This will prove to be useful to send the shell prompt for instance.

◆ shell_context

void* shell_telnet::shell_context

Context registered by shell.

◆ shell_handler

shell_transport_handler_t shell_telnet::shell_handler

Handler function registered by shell.

◆ work_sync

struct k_work_sync shell_telnet::work_sync

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