hello,
i have just started Socket programming and i come across functions
inet_addr() which converts IP address to unsigned long
and inet_ntoa() which converts unsigned long to IP address
but dont understand on what formula/principle they do these conversions
say for a given ip address can... (0 Replies)
Im trying to connect to a particular IP address and I'm tying to use gethostbyaddr() and inet_addr() to do this. However, when I tried using inet_addr(), I always get a return value of 0 when I tried to connect to "172.21.16.238". Hope someone here could help me on this. I already tried using inet_... (1 Reply)