TelnetInputStream.available()
Brought to you by:
kristjansson
im not exactly sure what the orig purpose of this
methode is but this patch will make available() return....
0 -- TelnetInputStream is currently processing the buffer
1 -- TelnetInputStream is idle
this patched version of available does not block, i was
thinking about using a AreYouThere signal but decided
it wasnt proper for an InputStream. additionally the
super available() functionality did not fit in with the
use of this class.
I believe the orig purpose of this methode was to return...
0 -- TelnetInputStream is currently processing and/or
NOT at the beginning of a new message
1 -- TelnetInputStream is idle and/or IS at the
beginning of a new message (theoretically unreachable)
patch for available()
Logged In: YES
user_id=1118570
Correction:
I believe the orig purpose of this methode was to return...
0 -- TelnetInputStream is currently processing and/or
IS at the beginning of a new message
1 -- TelnetInputStream is idle and/or NOT at the
beginning of a new message (theoretically unreachable)