Description
I have a TN5250 client (see rfc1205) which extends TelnetClient. Basically, the client negotiates BINARY transmission and operates in block-mode. However the host sends IAC EOR at the end of each block in order to notify the client that the transmission of the block of data is complete, and the client should build the display. The problem is that the IAC EOR is "consumed" by the TelnetInputStream and therefore never reaches the client.
There are a few ways this could be handled, here are couple of suggestions (the 2nd is probably better):-
1. Within TelnetInputStream, treat IAC EOR as data when in BINARY transmission state
2. Extend TelnetNotificationHandler and send notifications of all Telnet Commands received