TelnetStream

The following is an intentionally dismissive telnet parser, it basically ignores anything the client tells it to do. Its only purpose is to know how to parse negotiations and swallow them. It can, however, issue commands such as toggling echo

Constructor

new TelnetStream()

Methods

input(inputbuf)

Parse telnet input stream, swallowing any negotiations and emitting clean, fresh data

Parameters:
Name Type Description
inputbuf Buffer

telnetCommand(willingness, command)

Execute a telnet command

Parameters:
Name Type Description
willingness number

DO/DONT/WILL/WONT

command number | Array

Option to do/don't do or subsequence as array