Carapace

Telnet Comms Module

Telnet is a widely-used protocol for communicating with remote systems. For example, it is used by users to log onto Unix systems.

The protocol definition is contained in RFC 764, Telnet Protocol Specification, by J. Postel.

This Telnet module is very simple -- it only deals with the echoing of data. However, most systems themselves only implement a very basic form of the Telnet protocol.

Queue Creation

The create function can be used to create a Telnet module eg.

    (create Telnet)

Telnet Properties

A Telnet module supports the following properties:

property name property type description
localEcho String flag determining whether this module is echoing data -- legal values are true or false
remoteEcho String flag describing whether the remote end is echoing data -- legal values are true or false
log Log a log for the communications

Telnet Methods

A Telnet module supports the following standard methods:

method name description
connect connect this module
receive receive data
receiveInto receive data into the supplied buffer
send send data
disconnect disconnect this module
bind bind address information for this module
listen prepare to listen for new connections
accept wait for a new connection to arrive and, if it does, accept it


Contents Index Current topic: communications Related topics: communications classes, objects