[En-Nut-Discussion] UdpGetError() is only conditionally defined
phip at hb9etc.ch
Mon Feb 4 20:17:22 CET 2013
just found this in sys/socket.h:
extern int NutUdpSetSocketError(UDPSOCKET * sock, uint32_t remote_addr,
uint16_t remote_port, uint16_t error);
extern int NutUdpError(UDPSOCKET * sock, uint32_t * addr, uint16_t * port);
Why is there an #ifdef with ICMP for these basic functions? It is not
present in the source, so the functions will always be compiled anyway.
Additionally, the doc still says "Todo: There is no similar call like
NutTcpError() available for UDP."
Is something wrong with these functions or is this only a relict?
More information about the En-Nut-Discussion