Go to the first, previous, next, last section, table of contents.


]supportedOptionHandler

Function: ]supportedOptionHandler { [] stream this that code op -> }
file: 07-C-telnet.t
package: telnet
status: alpha

This is the generic function used to handle negotiations for options supported at the Muq end: You can enable negotiation for option N by doing

@$s.jobSet$S.session$s.socket$s.telnetOptionHandler --> handler
#']supportedOptionHandler --> handler[n]

This won't actually implement the option, of course, just enable negotiations as though it were -- it merely implements the Q state machine described in RFC1143.

You may wish to implement telnet protocol options by installing in telnetOptionHandler[n] a function which implements the option-specific semantics while delegating the negotiation details to ]supportedOptionHandler.


Go to the first, previous, next, last section, table of contents.