The Telnet model
TelnetNet is similar to HTTPNet, but clients maintain telnet sessions
to the server. The server echoes every character (in uppercase, to make it
more interesting, and prints control characters in a readable form).
Telnet clients are simulated except one, which is a proxy for a real-life
client. By telnetting to localhost, port 4242 you can send your own
keypresses over the simulated network to the simulated server.
To try:
- start the simulation with the "Run" button on the toolbar
- on Windows: open a command prompt (Start->Run->cmd.exe), and type
"telnet localhost 4242"
- on Linux/Unix: type "telnet localhost 4242" on the shell prompt, then
put your telnet into character mode (otherwise it'll send your keypresses
only when you hit Enter.) On my telnet this was done by pressing Ctrl+],
then typing "mode character" followed by Enter.
- then type into the telnet program, and watch how your keypresses get
into the simulated network.
It is also possible to stop the simulation when a packet is underway, and
peek into it.
Home