I think you may need to either wait until the first packet is sent to write the second one, or create a separate m_EntityUpdate object for the second packet. It hasn&#39;t sent the first one before you write over it with the second one.<br>
<br><div class="gmail_quote">On Wed, Aug 11, 2010 at 3:31 PM, Richard Becker <span dir="ltr">&lt;<a href="mailto:richard_3d@hotmail.com">richard_3d@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">




<div>
Can someone please tell me why the following code will not work? The send function is just an abstraction for ease of use. basically the first argument tells enet to broadcast, the bools at the end are for flags, in this case we are asking for sequenced only (not reliable).<br>
Both of these calls occur in the same &quot;frame&quot; or update() call. The problem is my client only gets the last message with the value of 3 for the number of entities? Any help here would be greatly appreciated - Richard<br>
<br>    m_EntityUpdate.uiNumEntities = 5;<br>    SendPacket(-1, &amp;m_EntityUpdate, sizeof(tServerEntityUpdate), CHANNEL_WORLD_UPDATE, false, true, false);<br>    <br>    m_EntityUpdate.uiNumEntities = 3;<br>    SendPacket(-1, &amp;m_EntityUpdate, sizeof(tServerEntityUpdate), CHANNEL_WORLD_UPDATE, false, true, false);<br>
<br>
</div></blockquote></div><br>