NB Runtime Library: CreateTxUdpSocket, wrong documentation

Discussion to talk about software related topics only.
Post Reply
stephan
Posts: 10
Joined: Fri Feb 26, 2010 1:58 am
Location: Germany

NB Runtime Library: CreateTxUdpSocket, wrong documentation

Post by stephan »

Hello,

in the NetBurner Runtime Library is an error in section 24.2.3 and 24.2.4. It says:
local_port : Local port number to use. A value of 0 will automatically select a random port number.
That's not true as far as I discovered. If the local port is set to 0 there is no random port number chosen internally. Instead it will be 0 and further write function calls like sendto() for that socket will return -2 (UDP_ERR_NOTOPEN_TO_WRITE).

Please update the documentation. It took me quite a while to fix it in my application. Maybe you can further add the return code to the Runtime Library documentation that are defined in udp.h.

Stephan
Post Reply