• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

sockettimeoutexception in java

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 1166
17
Netbeans IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to a more appropriate forum...
 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).


 
reply
    Bookmark Topic Watch Topic
  • New Topic