Search:

Type: Posts; User: Zaphod_b

Search: Search took 0.13 seconds.

  1. Replies
    5
    Views
    2,150

    Re: Communicating with a Telnet server

    I ran the program as well as manual telnet sessions from a Linux command line and piped the output to "tee" so that I could capture everything in a file.

    java TelnetIO | tee TelnetIO.out

    And
    ...
  2. Replies
    5
    Views
    2,150

    Re: Communicating with a Telnet server

    Handling network timeouts

    Probably the easiest way:
    Default SO_TIMEOUT is zero, which means that reads are blocking. You can use the Socket.setSoTimeout() method to give a maximum delay before...
  3. Replies
    5
    Views
    2,150

    Re: Communicating with a Telnet server

    Question: What do you think is the purpose of the never-stopping while loop?

    Answer: Keeps trying to read from socket as long as the socket connection is maintained.

    Question: How does it ever...
Results 1 to 3 of 3