25#ifndef PROTOCORE_TELNET_H
26#define PROTOCORE_TELNET_H
28#include "numeros_scribo/numeros_scribo.h"
33#if PROTOCORE_ENABLE_TELNET
36typedef void (*TelnetCommandCb)(
const char *line, uint8_t conn_id);
44 const mmgr_field *spec;
97extern TelnetVars TelnetV;
102 void (*
const on_command)(uint8_t *work);
103 void (*
const print)(uint8_t *work);
104 void (*
const println)(uint8_t *work);
105 void (*
const frame)(uint8_t *work);
106 void (*
const client_count)(uint8_t *work);
107 void (*
const accept)(uint8_t *work);
108 void (*
const rx)(uint8_t *work);
109 void (*
const close)(uint8_t *work);
110 void (*
const proto_handler)(
const uint8_t *work);
115void protocore_telnet_on_command(uint8_t *work);
116void protocore_telnet_print(uint8_t *work);
117void protocore_telnet_println(uint8_t *work);
118void protocore_telnet_frame(uint8_t *work);
119void protocore_telnet_client_count(uint8_t *work);
120void protocore_telnet_accept(uint8_t *work);
121void protocore_telnet_rx(uint8_t *work);
122void protocore_telnet_close(uint8_t *work);
123void protocore_telnet_proto_handler(
const uint8_t *work);
129static const TelnetNs Telnet __attribute__((unused)) = {
130 .on_command = protocore_telnet_on_command,
131 .print = protocore_telnet_print,
132 .println = protocore_telnet_println,
133 .frame = protocore_telnet_frame,
134 .client_count = protocore_telnet_client_count,
135 .accept = protocore_telnet_accept,
136 .rx = protocore_telnet_rx,
137 .close = protocore_telnet_close,
138 .proto_handler = protocore_telnet_proto_handler,
150uint8_t *protocore_telnet_span(
void);
Per-protocol connection event/poll callbacks (the server's dispatch vtable).