When using DatagramSockets how do i know if there is a waiting packet,
Timeouts are unexcepable, as this is running in a system that cant afford delays
this is for a minecraft server plugin, if thats any help
3 replies to this topic
#1
Posted 07 January 2012 - 11:00 AM
|
|
|
#2
Posted 07 January 2012 - 11:18 AM
I never worked with Sockets or anything like it, So best i can do for you is providing some links to learn about it:
1. http://www.buyya.com...a/Chapter13.pdf
2. [Chapter 9] 9.2 Datagram Sockets
There should be containing some information.
1. http://www.buyya.com...a/Chapter13.pdf
2. [Chapter 9] 9.2 Datagram Sockets
There should be containing some information.
Think my post we're usefull? Please take your time and press the Like button at my post, Big Thanks!
For great C# & Android tutorials visit my blogg: http://www.thecompboy.com/
For great C# & Android tutorials visit my blogg: http://www.thecompboy.com/
#3
Posted 08 January 2012 - 02:00 AM
Can't you use the receive method in a try-catch in a while loop to continuously receive packets?
#4
Posted 08 January 2012 - 07:56 AM
Generally, UDP packets are "fire and forget". You don't get confirmation unless the listener specifically sends a confirmation message back. If you're doing that, why not use TCP instead of UDP?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









