Zum Hauptinhalt springen

Beschreibung der Option

WILL und DO dienen nur dazu, die Erlaubnis für eine spätere Erörterung einzuholen und zu erteilen. Der eigentliche Austausch der Statusinformationen erfolgt innerhalb von Optionsunterbefehlen (IAC SB STATUS...).

Haben die beiden Hosts ein WILL und ein DO ausgetauscht, steht es dem Absender des WILL STATUS frei, Statusinformationen zu übermitteln, spontan oder als Antwort auf eine Anforderung des Absenders des DO. Im schlimmsten Fall kann dies dazu führen, dass die Information zweimal übermittelt wird. Nur der Absender des DO darf Anforderungen senden (IAC SB STATUS SEND IAC SE), und nur der Absender des WILL darf tatsächliche Statusinformationen übermitteln (innerhalb eines Befehls IAC SB STATUS IS ... IAC SE).

IS hat die Unterbefehle WILL, DO und SB. Sie werden GENAU so verwendet wie bei der eigentlichen Aushandlung von TELNET-Optionen, mit der Ausnahme, dass SB mit SE statt mit IAC SE abgeschlossen wird. Die Übertragung von SE als gewöhnliches Datenbyte erfolgt durch Verdoppeln des Bytes (SE SE). Optionen, die nicht ausdrücklich beschrieben sind, gelten als in ihrem Standardzustand befindlich. Ein einzelnes IAC SB STATUS IS ... IAC SE beschreibt den Zustand ALLER Optionen.

Das Folgende ist ein Beispiel für die Verwendung der Option:

Host1: IAC DO STATUS

Host2: IAC WILL STATUS

(Host2 is now free to send status information at any time.
Solicitations from Host1 are NOT necessary. This should not
produce any dangerous race conditions. At worst, two IS's will
be sent.)

Host1 (perhaps): IAC SB STATUS SEND IAC SE

Host2 (the following stream is broken into multiple lines only for
readability. No carriage returns are implied.):

IAC SB STATUS IS

WILL ECHO

DO SUPPRESS-GO-AHEAD

WILL STATUS

DO STATUS

IAC SE

Explanation of Host2's perceptions: It is responsible for echoing
back the data characters it receives over the TELNET connection;
it will not send Go-Ahead signals; it will both issue and request
Status information.