This class provides Telnet protocol communications over a supplied transport, which must be a member of a class derived from Transport -- typically a Socket. While Telnet is not a secure protocol for business applications, it is used by the Synergy/DE remote debugger -- which is why I created this class and its extensions. The CodeCoverage class uses a Telnet connection to the Synergy/DE debugger to sample code coverage.
Words in italics indicate an instance of a class. The word corresponds to the class name, except where more than one instance is represented in the same statement. In that case a number (2, 3, etc.) is appended to the class name.
Words in normal typeface are to be taken literally (required punctuation, class name in a static reference, method name, etc.)
The symbol => is used to separate an expression (on the left) from its return value (on the right).
An ellipsis (...) indicates that the previous argument may be repeated any number of times. The description will indicate whether one instance is required.
new Telnet(transport) => telnet
telnet.GetChar() => a
Returns the next character received from the peer, excluding Telnet command characters (which are processed automatically). Text is received from the peer in chunks of up to 1024 bytes, but is buffered until requested by this method or the GetLine method.
Three Telnet commands return characters from this method: EC (erase character) returns a char(8) (backspace), EL (erase line) returns a char(21) (Ctrl+U), and GA (go ahead) returns a char(0) (NULL).
telnet.GetLine(a) => i
telnet.Ready => boolean
telnet.Send(a) => boolean
telnet.SendLine(a) => boolean