A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
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
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
How To Ask Questions On JavaRanch
It is sorta covered in the
JavaRanch Style Guide
subject: Nio : How to close a socket channel
detect disconnetced socketchannel on writes
nio and http request
Question regarding the SocketChannel
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-2014