File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
RabbitMQ in Depth
this week in the
Sockets and Internet Protocols
Nio : How to close a socket channel
Joined: Jul 02, 2004
Oct 02, 2004 17:54:00
I am using socket channel for communication (created as shown below). Each time i use it, i am closing by invoking socketChannel.close(). But this doesnt seem to be closing the tcp connection.
socketChannel = SocketChannel.open();
Can someone sugg the right way to terminate the connection.
Joined: Aug 15, 2004
Oct 04, 2004 00:20:00
Joined: Oct 29, 2001
Oct 04, 2004 11:53:00
This question belongs in the
Sockets and Internet Protocols forum
How To Ask Questions On JavaRanch
I agree. Here's the link:
subject: Nio : How to close a socket channel
Question regarding the SocketChannel
nio and http request
detect disconnetced socketchannel on writes
Please verify if i understand NIO Selectors
SocketChannel And Socket Shutdown/recycle
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015