Thanks, I figured as much.  Right now, I'm being lazy and delaying 250ms
for a prototype, but I can fix it later

On Thursday, July 28, 2016, Alexander Lehmann <[email protected]> wrote:

> 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]
> <javascript:_e(%7B%7D,'cvml','[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/CADMLN6bNxfcdzC0gPRu7zv9cZOPQ-%3DY%3DoyXf-dMGw2w1Z-VdtA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to