The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 04-21-2008
Saurabh78 Saurabh78 is offline
Registered User
 

Join Date: Jun 2004
Posts: 26
I tried the code fromm link.
struct in_addr addr;

addr.s_addr = inet_addr( "121.243.2231.133" );
he = gethostbyaddr((char *)&addr, sizeof(struct in_addr), AF_INET);

Again he is NULL>\.
Reply With Quote