Peter Pentchev wrote:
The second chunk of the patch fixes getnameinfo() error reporting - just like with getaddrinfo(), getnameinfo() errors should be displayed using s_gai_strerror() instead of sockerror().
Manuals seem to claim just the opposite.
Linux Manual: RETURN VALUE On success 0 is returned, and node and service names, if requested, are filled with NUL-terminated strings, possibly truncated to fit the specified buffer lengths. On error a nonzero value is returned, and errno is set appropriately.
Microsoft: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/win... Return Values Success returns zero. Any nonzero return value indicates failure. Use the WSAGetLastError function to retrieve error information.
Best regards, Mike