DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
telnet.h File Reference

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

#include "ServerConfig.h"
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Detailed Description

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

A zero-heap line-oriented Telnet console dispatched from the session layer's ConnProto::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, ConnProto::PROTO_TELNET); // open the Telnet port
telnet_on_command(my_cmd_handler); // void(const char *line, uint8_t id)
@ PROTO_TELNET
Telnet (RFC 854).

Definition in file telnet.h.