I there a detailed socket FAQ/reference/guide available on-line as I need some general socket info.
But my specific question is as follows. I have a host name, which I can get an ip address for. When however I call gethostbyaddr passing the correct inetaddress I get back WSANO_DATA. If however I call gethostbyname I get the HOSTENT structure returned.
What gives? Shouldn't both calls be looking up the same record on the name server, but just using different indexes, or are these two fundamentally different functions? I've also not found any decent description of the error WSANO_DATA, but I guess it means the name server has no record for the ip address.
Very confussed,
Moohoo
But my specific question is as follows. I have a host name, which I can get an ip address for. When however I call gethostbyaddr passing the correct inetaddress I get back WSANO_DATA. If however I call gethostbyname I get the HOSTENT structure returned.
What gives? Shouldn't both calls be looking up the same record on the name server, but just using different indexes, or are these two fundamentally different functions? I've also not found any decent description of the error WSANO_DATA, but I guess it means the name server has no record for the ip address.
Very confussed,
Moohoo