[En-Nut-Discussion] NutTcpAccept() timeout

Harald Kipp harald.kipp at egnite.de
Thu Jul 20 10:05:37 CEST 2006


Henrik,

At 20:07 06.07.2006 +1000, you wrote:

>To be compatible with existing applications, these calls could be either 
>implemented as overloaded "Try" version of the connect and accept call:
>
>    NutTcpTryAccept(sock, port, waittime);
>    NutTcpTryConnect(sock, ip, port, waittime)
>
>or using ioctl and specific socket options (SO_ACCTIMEO and SO_CONNTIMEO) 
>to apply time-outs to these two operations.
>
>I actually prefer the latter option as it keeps the API lean and neat.

I'd prefer the latter too. It may break a few apps, but would
be easy to fix.

Looks like I have been the only one rejecting this previously.
Please go ahead.

Thanks,

Harald




More information about the En-Nut-Discussion mailing list