Class Protocols.TELNET.Readline
- Description
Line-oriented TELNET protocol handler with Stdio.Readline support.
Implements the Stdio.NonblockingStream API.
- Inherit
LineMode
inherit LineMode : LineMode- Description
Based on the Line-oriented TELNET protocol handler.
- Variable
readline
Stdio.ReadlineProtocols.TELNET.Readline.readline- Description
Stdio.Readline object handling the connection.
- Method
create
Protocols.TELNET.Readline Protocols.TELNET.Readline(objectf,function(mixed,string:void)r_cb,function(mixed|void:string)w_cb,function(mixed|void:void)c_cb,mappingcallbacks,mixed|voidnew_id)- Description
Creates a TELNET protocol handler, and sets its callbacks.
- Parameter
f File to use for the connection.
- Parameter
r_cb Function to call when data has arrived.
- Parameter
w_cb Function to call when the send buffer is empty.
- Parameter
c_cb Function to call when the connection is closed.
- Parameter
callbacks Mapping with callbacks for the various TELNET commands.
- Parameter
new_id Value to send to the various callbacks.