I thought so :). Thanks for the reply.<br><br><div><span class="gmail_quote">On 8/24/07, <b class="gmail_sendername">GhostManZero</b> <<a href="mailto:ghostmanzero@lutherlink.de">ghostmanzero@lutherlink.de</a>> 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 "empty" the list of
events, so if the connect thread gets the receive packet and just ignores it,
it'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 "pause" the program to sync, using mutexes or semaphores
or stuff like that, so a thread being "run" will pause all other
threads.</p></span><p>(note to self: next time, use "reply to list" 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 <<a href="mailto:kamransoomro84@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">kamransoomro84@gmail.com</a>>:<br><br></span></p>
<div><span class="e" id="q_11498e331b625fd1_3">> Hi,<br>><br>> I was wondering if running multiple instances of
enet_host_service on the<br>> same host, but looking for different events
will create problems or not? I<br>> mean to say, that suppose I'm
listening in one thread for an<br>> ENET_EVENT_TYPE_CONNECT, and in
another for ENET_EVENT_TYPE_RECEIVE at the<br>> same time, same host. Now,
suppose an ENET_EVENT_TYPE_RECEIVE is generated,<br>> but the active thread
at that time is the one listening for CONNECT, and it<br>> receives the
RECEIVE event, checks if it's a CONNECT event, and doesn't do<br>>
anything. Now, when the RECEIVE thread runs, will it receive the RECEIVE<br>> event or not? Please let me know if I'm not clear. Thanks!<br>><br>> --<br>> Regards,<br>> Kamran Soomro.<br>><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.