[En-Nut-Discussion] UdpGetError() is only conditionally defined

Harald Kipp harald.kipp at egnite.de
Mon Feb 11 09:23:34 CET 2013


Hi Ole,

On 10.02.2013 17:22, Ole Reinhardt wrote:
> But the UDP error support slightly modifies the behavior of the
> NutUdpSendTo() and NutUdpReceiveFrom(). Both functions will return -1
> without sending/receiving the packet if an error is outstanding, as long
> as NUT_UDP_ICMP_SUPPORT is enabled.
...

> I would vote to make it a standard functionality and therefor would
> remove the conditional compile. What do you think?

I'd suggest to make your extensions the standard and temporarily use
NUT_UDP_ICMP_EXCLUDE for backward compatibility.

Regards,

Harald




More information about the En-Nut-Discussion mailing list