ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
telnet.h File Reference

Layer 6/7 - minimal RFC 854 Telnet server (PROTOCORE_ENABLE_TELNET). More...

#include "protocore_config.h"

Go to the source code of this file.

Detailed Description

Layer 6/7 - minimal RFC 854 Telnet server (PROTOCORE_ENABLE_TELNET).

A zero-heap line-oriented Telnet console dispatched from the session layer's ProtoConn::PROTO_TELNET arms (the same way SSH is dispatched to ssh_conn). On connect it negotiates server-side echo + suppress-go-ahead (so the client runs in character mode and the server draws the line), accumulates a line, echoes keystrokes (with backspace handling), and hands each completed line to a command callback. Output can be pushed to all connected clients.

Telnet is plaintext - no authentication or encryption. Use it only on a trusted network; prefer SSH or the WebSocket terminal otherwise.

Usage:

server.listen(23, ProtoConn::PROTO_TELNET); // open the Telnet port
protocore_telnet_on_command(my_cmd_handler); // void(const char *line, uint8_t id)

Definition in file telnet.h.