Are you saying you're seeing this happen? I'd think not.<br>One UDP packet is really a contained entity, not a stream like with UDP. So 2 individual packets never merge on the other side, unless you explicitly would do the merging in your own code.<br>
<br>Cheers,<br>Ruud<br><br><div class="gmail_quote">On Thu, Aug 18, 2011 at 3:14 PM, Sebastian Ahlman <span dir="ltr"><<a href="mailto:sebastian.ahlman@mbnet.fi">sebastian.ahlman@mbnet.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hey guys, first time poster here. Wonderful lib you have created.<br>
<br>
One (possibly stupid) question though. I could not find any answer to this.<br>
<br>
Is it possible that the receiving peer only receives part of a packet or<br>
multiple packets at the same time? Eg. if I send a packet with<br>
<br>
ENetPacket *packet = enet_packet_create ("hello", strlen ("hello") + 1,<br>
ENET_PACKET_FLAG_RELIABLE);<br>
<br>
...and then send another one from the same sender to the same receiver<br>
with...<br>
<br>
ENetPacket *packet = enet_packet_create ("world", strlen ("world") + 1,<br>
ENET_PACKET_FLAG_RELIABLE);<br>
<br>
...is it possible that the receiving peer only receives "hel"? Or<br>
"helloworld"?<br>
What about "hellowo"?<br>
<br>
Also, does the ENET_PACKET_FLAG_RELIABLE affect this? I know that if I don't<br>
specify the flag there is no guarantee that the packet will make it's way<br>
through at all, but what about partial or "concatenated" packets?<br>
<br>
The reason I am asking is because I have implemented a simple RPC system<br>
on top<br>
of enet, and currently I just blindly expect one ENetPacket to be exactly one<br>
RPC command. Is this safe to do?<br>
<br>
Thanks!<br>
<br>
//Sebastian<br>
<br>
_______________________________________________<br>
ENet-discuss mailing list<br>
<a href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a><br>
<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
</blockquote></div><br>