Use a IAC buffer to make IAC commands not block. Also call callback on command other than WILL/WONT/DO/DONT. People still want to handle other commands.
Logged In: YES user_id=8717 A new patch also handle IAC SB ... IAC SE data fetchming for fully handling the telnet protocol. No option will use chr(0) instead of 256. protocol handler should know if a command has option or not, anyway. Supercede the last patch. Please commit.