On Mon, Jul 14, 2003 at 08:05:15PM -0700, Andrew BOGATYREV wrote:
> All TELNET commands consist of at least a two byte sequence: the
> "Interpret as Command" (IAC) escape character followed by the code
> for the command. The commands dealing with option negotiation are
> three byte sequences, the third byte being the code for the option
> referenced. This format was chosen so that as more comprehensive use
> of the "data space" is made -- by negotiations from the basic NVT, of
> course -- collisions of data bytes with reserved command values will
> be minimized, all such collisions requiring the inconvenience, and
> inefficiency, of "escaping" the data bytes into the stream. With the
> current set-up, only the IAC need be doubled to be sent as data, and
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> the other 255 codes may be passed transparently.
>
> The following are the defined TELNET commands. Note that these codes
> and code sequences have the indicated meaning only when immediately
> preceded by an IAC.
That's what lftp does. It doubles IAC (character with the code 255) to
send it as data.
--
Alexander. | http://www.yars.free.net/~lav/