I assume the network stack will decide how to put the packets together, 
which means that there may be packages that are split into parts if they 
are too long or are put together into a big packet (at least with tcp) so 
you cannot rely on either

If you use some kind of framing or use a separation byte to make sure you 
can reconstruct the packages if they are changed, that would be safe in all 
cases, e.g. prefix each packet with a size byte or word (depending on how 
large your packets can be).


On Tuesday, July 26, 2016 at 12:39:57 AM UTC+2, [email protected] wrote:
>
>
> Background: I'm toying with making a multiplayer game.  I already have 
> registration and login working. 
>
> I just found that if I send several .writes at the same time, they come as 
> a single packet on receive instead of multiple packets. 
>
> I know a couple ways to resolve this, but I was just wondering if there is 
> some way to seperate the packets aside from time delaying them.

-- 
You received this message because you are subscribed to the Google Groups 
"Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/netty/f1bb62fb-4aff-41d7-b596-6471f021e788%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to