A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
How To Ask Questions On JavaRanch
I agree. Here's the link:
subject: Nio : How to close a socket channel
SocketChannel And Socket Shutdown/recycle
Please verify if i understand NIO Selectors
nio and http request
detect disconnetced socketchannel on writes
Question regarding the SocketChannel
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014