This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes sockettimeoutexception in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "sockettimeoutexception in java " Watch "sockettimeoutexception in java " New topic
Author

sockettimeoutexception in java

bala kan
Ranch Hand

Joined: Aug 20, 2012
Posts: 44
Hi Friends,


good morning to you all.. we have been doing small project using socket concept in which our requirement is

there will be sender and receiver..

the receiver should receive the message from the sender.. but, if it does not receive the message for 5 more seconds, the message "no communication" should appear.. we did this using sockettimeoutexception..

the communication should restart even after throwing sockettimeoutexception..

but in our program, it closes the socket and displays "no communication" message..

your help will be appreciated!!!


Regards,
Bala
Richard Tookey
Ranch Hand

Joined: Aug 27, 2012
Posts: 971
    
  10

Wonderful ! Never mind that this has nothing to do with "Version Control and other tools", it just has nothing to allow anyone to take even a wild guess at the problem.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

Moving to a more appropriate forum...


JBoss In Action
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

bala kan wrote:
the receiver should receive the message from the sender.. but, if it does not receive the message for 5 more seconds, the message "no communication" should appear.. we did this using sockettimeoutexception..

the communication should restart even after throwing sockettimeoutexception..

but in our program, it closes the socket and displays "no communication" message..


Hi, and welcome to the Ranch!

You have a bug in your code. The solution to this problem is: Fix the bug.

If you need a more detailed answer than that, you'll need to TellTheDetails(⇐click) or your problem, including an SSCCE(⇐click).


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sockettimeoutexception in java
 
Similar Threads
JMS confusions
Question regarding JMS.
Socket and threads
JMS or JCA or Webservice ?
jms queue fetching of message as and when it is posted in asynchronous communication