I thought so :). Thanks for the reply.<br><br><div><span class="gmail_quote">On 8/24/07, <b class="gmail_sendername">GhostManZero</b> &lt;<a href="mailto:ghostmanzero@lutherlink.de">ghostmanzero@lutherlink.de</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><span class="q"><p>From what i know, Enet_host_service will &quot;empty&quot; the list of
events, so if the connect thread gets the receive packet and just ignores it,
it&#39;ll lose the packet, so you wont receive it on the other
thread.</p><p>Remember, even if threads appear to run all at the same time,
they need to &quot;pause&quot; the program to sync, using mutexes or semaphores
or stuff like that, so a thread being &quot;run&quot; will pause all other
threads.</p></span><p>(note to self: next time, use &quot;reply to list&quot; instead
of reply so the msg will be sent to the list and not to the
poster)</p><p><span class="q">Quoting Kamran Soomro &lt;<a href="mailto:kamransoomro84@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">kamransoomro84@gmail.com</a>&gt;:<br><br></span></p>
<div><span class="e" id="q_11498e331b625fd1_3">&gt; Hi,<br>&gt;<br>&gt; I was wondering if running multiple instances of
enet_host_service on the<br>&gt; same host, but looking for different events
will create problems or not? I<br>&gt; mean to say, that suppose I&#39;m
listening in one thread for an<br>&gt; ENET_EVENT_TYPE_CONNECT, and in
another for ENET_EVENT_TYPE_RECEIVE at the<br>&gt; same time, same host. Now,
suppose an ENET_EVENT_TYPE_RECEIVE is generated,<br>&gt; but the active thread
at that time is the one listening for CONNECT, and it<br>&gt; receives the
RECEIVE event, checks if it&#39;s a CONNECT event, and doesn&#39;t do<br>&gt;
anything. Now, when the RECEIVE thread runs, will it receive the RECEIVE<br>&gt; event or not? Please let me know if I&#39;m not clear. Thanks!<br>&gt;<br>&gt; --<br>&gt; Regards,<br>&gt; Kamran Soomro.<br>&gt;<br><br><br>
</span></div><span class="sg">-- <br>~Zero </span><p></p><br>_______________________________________________<br>ENet-discuss mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:ENet-discuss@cubik.org">
ENet-discuss@cubik.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Kamran Soomro.