liveBook · Manning

Telnet

As explained in Python Concurrency with asyncio

Telnet is an application protocol and command-line client that provides bidirectional text communication over a TCP connection.

Telnet is an application protocol and command-line client for establishing a TCP connection to a specified server and host. It provides a terminal for sending and receiving bytes. section 3.2

Use Telnet as a simple way to test socket-based servers: connect to an address, type data, and press Enter to send it. The server can observe the client connection, but must separately implement reading and writing. section 3.2 section 3.1

Connect to a local socket server

Run a server listening on localhost port 8000, then execute `telnet localhost 8000`. Telnet reports the connection, displays a cursor, and sends typed input when Enter is selected. section 3.2

telnet localhost 8000

Use the command listing to connect a Telnet client to the local test server. section 3.2

How Python Concurrency with asyncio covers it

How deep it goes
Explains TCP connection and terminal interaction, but defers server-side data handling to socket sendall and recv methods.
Examples
Demonstrates `telnet localhost 8000`, typed terminal input, and a server message reporting the connected client.
What it assumes
Assumes basic TCP and socket-server concepts while demonstrating how to connect to a listening server from zero.
What you can do after
Operate a Telnet client to connect to a local socket server and exchange terminal bytes.
How it connects
Connects Telnet with TCP, sockets, asyncio, event loops, and echo servers.

Also explained in

Compare how 2 books explain Telnet →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Python Concurrency with asyncio. The section links point to the parts of the book it draws on.