[ENet-discuss] wake-up enet service

Lee Salzman lsalzman at gmail.com
Wed Aug 1 18:36:29 PDT 2012


Call enet_host_flush(). That will try to send out any queued packets immediately.

On 08/02/2012 09:58 AM, Jack Applegame wrote:
> Hello!
>
> I use separate thread for calling enet_host_service() with 1 second timeout.
> Is there a way to wake-up ENet from other thread, if It is necessary to send a packet immediately without waiting for timeout?
> Setting timeout to zero isn't good way, because in this case service thread fully loads one processor core even if it is no network activity.
>
> Best regards
> Jack Applegame
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss
>



More information about the ENet-discuss mailing list