NIO closing a channel !!Help
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Krishna_Adavi
Posted On:   Saturday, October 2, 2004 08:42 PM

Can anyone sugg me how to close a socket channel.


I create a channel as below. After done with it, i am closing the channel using socketChannel.close() method. After this, socketChannel.isConnected() is returning true. I need some way of closing the channel such that the tcp connection is actually terminated.




SocketChannel socketChannel = SocketChannel.open();
socketChannel.connect(new InetSocketAddress(ip, port));
socketChannel.configureBlocking(false);


Thanks
Krishna
About | Sitemap | Contact