File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sockettimeoutexception in java

 
bala kan
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Pie
Posts: 1166
17
Java Linux Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to a more appropriate forum...
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic