This site's content was compiled from 1993 to 2006. Beyond that, Google is your friend.

Telnet Client

Maintainer

Brian Heilig

Description

This library implements a Telnet client in accordance with RFC 854. It comes with an example implemented with ISE's EiffelNet library.

The Telnet client is implemented as a state machine. The presentation and network layers have been abstracted for generality. You must provide your own network connection.

When the associated socket becomes readable you should read all of the remote terminal's data into a string and pass it to `on_client_data'. This command will parse the provided string and call the appropriate call-back as necessary.

All recognised commands will call an on_* call-back. For example, receiving IAC WILL ECHO will result in a call to on_echo. Receiving a terminal-type sub-negotiation will result in a call to on_sub_terminal_type (if you are not familiar with these terms see the bibliography). Anything not interpreted as a command will be appended to data_buffer. When a terminating (new line or carriage return) character is received, or when data_buffer becomes full, on_new_line will be called. The parameter `data' passed to on_new_line will not contain the terminating character.

Commands and data may span across multiple reads. Commands may be received in the middle of a regular data stream.

You should inherit from TELNET_CLIENT and redefine any commands you wish to handle. You may also redefine on_command to handle your own commands.

Categories

Versions

Links

Supported compilers

Google
 
Web eiffelzone.com