[ENet-discuss] ENet handling of EAGAIN and EINTR

Dennis Schridde devurandom at gmx.net
Tue Apr 23 01:21:04 PDT 2013


Hi James!

Am Dienstag, 23. April 2013, 00:25:15 schrieb James Bellinger:
> enet_socket_wait is sent a timeout. If I retry poll/select, the timeout
> will be wrong. So, my thought is, introduce a new return value -2 on
> enet_socket_wait to indicate 'error, but retry'.
Maybe return -EAGAIN? That is how I try to do it in my code - reuse Unix error 
codes where applicable.

--Dennis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20130423/a3343550/attachment.pgp>


More information about the ENet-discuss mailing list