Loading...
Searching...
No Matches

minimal Telnet server (RFC 854) implementation More...

Detailed Description

minimal Telnet server (RFC 854) implementation

Note
This implementation only supports a single client and no options.
Warning
Telnet is entirely unencrypted! Do not use it on public networks. This is intended to aid debugging on networks that are isolated from the Internet.
Author
Benjamin Valentin benja.nosp@m.min..nosp@m.valen.nosp@m.tin@.nosp@m.ml-pa.nosp@m..com

Definition in file telnet.h.

#include "net/sock/tcp.h"
+ Include dependency graph for telnet.h:

Go to the source code of this file.

Macros

#define CONFIG_TELNET_PORT   (23)
 The port for the Telnet server to listen on.
 

Functions

int telnet_server_start (void)
 Start the Telnet server thread.
 
int telnet_server_write (const void *buffer, size_t len)
 Write data to the telnet client.
 
int telnet_server_read (void *buffer, size_t count)
 Read data from the telnet client, will block until data is available.
 
void telnet_server_disconnect (void)
 Request to disconnect the current client.
 
void telnet_cb_pre_connected (sock_tcp_t *sock)
 Callback function that gets called when a telnet client connects but before stdio is redirected.
 
void telnet_cb_connected (sock_tcp_t *sock)
 Callback function that gets called when a telnet client connects after stdio is redirected.
 
void telnet_cb_disconneced (void)
 Callback function that gets called after a telnet client disconnected.