Menu

#1 TelnetInputStream.available()

open
nobody
None
5
2005-12-23
2005-12-23
kundarsa
No

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)

Discussion

  • kundarsa

    kundarsa - 2005-12-23

    patch for available()

     
  • kundarsa

    kundarsa - 2005-12-23

    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)

     

Log in to post a comment.