[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: gethostbyaddr problem solved!!
> The call to inet_aton is necessary to handle the
The inet_aton is NOT for handling endianness its for converting the Ip
address from standard numbers dot notation( that is easily understood by
everyone) to binary ( understood by computer).
For handling endianness the functions such as hotnl, ntohs etc. are used
whcich convert the data from host to network byte order or vice versa.