.comment-link {margin-left:.6em;}

Blog site moved to new location...




The Pile

Subscribe

Using a feed:
Subscribe
Using e-mail:
Your e-mail

Monday, November 25, 2002

New JDK 1.4 socket timeout control

Core Java Technologies Technical Tips

int timeout = 500; // half a second
SocketAddress socketAddress =
new InetSocketAddress(host, port);
Socket socket = new Socket();
socket.connect(socketAddress, timeout);






From an archive on my old blog

posted by Eamonn | 4:33 PM

0 Comments:

Post a Comment

<< Home

Irish Blogs

Creative Commons License
This work is licensed under a Creative Commons License.