well, my friend helped me out. i made the following change
As was:
dest.sin_addr.s_addr = inet_addr(hinfo->h_addr);
Changed To:
dest.sin_addr = *(struct in_addr *)(hinfo->h_addr);
Now the...
Type: Posts; User: raman.x.verma
well, my friend helped me out. i made the following change
As was:
dest.sin_addr.s_addr = inet_addr(hinfo->h_addr);
Changed To:
dest.sin_addr = *(struct in_addr *)(hinfo->h_addr);
Now the...
Hello There, I am trying to change a simple client code that will retrieve the web pages from any web site using TCP sockets. It fails in the connect function.
When I made the code run on my m/c...