How To: Open Client Socket in Java With Timeout

How To: Open Client Socket in Java With Timeout

Note: This article will be emailed to your friend.

Often we need to create a (client) socket connection in java but we do not want to wait indefinitely for the connection to open. We need a way to timeout socket connections. Two solutions and recommended code.

Previously the only way was to create the socket in a Thread. And then kill the thread if it [...]

Read the rest of this article (188 words)

Please fill in the following fields

* - Required

Your Name: *

Your E-Mail: *

Your Remarks:

Friend's Name: *

Friend's E-Mail: *

Protected by Comment Guard Pro