Forums Register Login

can anyone help me with this problem

+Pie Number of slices to send: Send
Write a Java code segment (not a complete program) to open a datagram socket for receiving a datagram of up to 1000 bytes, timing out in 5 seconds. If a timeout happens, the message "timed out" should be displayed on the screen.

What happens if the timeout is set to 0?
+Pie Number of slices to send: Send
Try it and see!

Then read the javadocs.
+Pie Number of slices to send: Send
Moving to Sockets and Internet Protocols forum...
Wink, wink, nudge, nudge, say no more, it's a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 951 times.
Similar Threads
Getting NullPointerException while counting number of visitors using session
This Weeks Giveaway
Unable to passivate due to ctx lock, JBossRollbackException
How can I catch session timeout event?
Using ThreadPool
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:09:03.