
Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
On 17 Aug., 03:41, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
> >I'm thinking about something that encapsulates the low-level stuff
> >(actually opening UDP sockets, encoding data etc.) and provides me
[quoted text clipped - 3 lines]
> for when it as OK to lose messages, when you DON'T have ongoing stream
> state.
Actually, in the application I'm looking to shop this library for, we
will use TCP *and* UDP. For example, for login we will use TCP. There
are many messages where we don't mind whether packets arrive in order,
though. Also, it does not make sense for all messages to worry about
lost packets and do stuff like resending. In other words, we need fine-
grained control about which messages need which level of guarantees.
As we are going to generate a lot of traffic anyway, the difference in
header size between TCP and UDP is a significant cost factor.
Cheers,
AzazelDev
> UDP itself is pretty simple. See my code for getting system time via
> UDP inhttp://mindprod.com/products1.html#SETCLOCK.
> --
> Roedy Green Canadian Mind Products
> The Java Glossaryhttp://mindprod.com