This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Is there any timeouts for Java Nio SocketChannel?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Is there any timeouts for Java Nio SocketChannel??" Watch "Is there any timeouts for Java Nio SocketChannel??" New topic
Author

Is there any timeouts for Java Nio SocketChannel??

ramakrishna rayudu
Ranch Hand

Joined: Mar 08, 2011
Posts: 57
Hi..

This is Ramky.can any one please help regrading my Question in my project we have Server called GTM-GatewayServer this was Developed using
Java Nio API we have so many Clients all Clients Apps Will connect to this server and they can send SMS to Mobile Users.
here is MyQuestion that if any Client connected to This NioServer we are storing the Socket Channel with Clinet ID in HashMap.
After a long time when the Server wants to send some data to the Client server will get the SocketChannel Obejct from HashMap
and it will try to Write Data on the Scoket Channel But its giving that Socket is Closed.is there any time out for Scoket or Scoket Channle?? (or)
will Scoket or Scoket Channel will Automatically Closed if i put Scoket Channel or Scoket Ideal for Long time???

Thanks in Advance,
Ramky
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there any timeouts for Java Nio SocketChannel??