Jump to main content

##

# 1.2.1.21 Telnet Module

Telnet, which runs over a TCP connection, provides bidirectional, interactive communication between two nodes on the Internet or on a Local Area Network. The Telnet code included with Harmony TCP/IP stack is a demonstration of the possible utilization of a Telnet server module. The server listens for a Telnet connection. When a client attempts to make one, the server will prompt the client for a username and password, and if the correct one is provided, it will_connect_the client.

The server registers itself with the system command processor and acts as a communication channel capable of issuing commands and receiving replies.

From this moment on, the Telnet connection can be used for various system and TCP/IP related commands, just as the regular system console is used.

The commands currently implemented and processed by the command processor can be dynamically updated, new commands can be added, etc. See the tcpip_commands.c file for the list of TCP/IP-related commands.

Based on this skeleton Telnet code, completely new behavior can be implemented for the Telnet server.