I tried to run "inet_ntoa(*((struct in_addr *)h->h_addr))", but it always says 'inet_ntoa' has not been declared.
What head file should i include to make the above code running? The following is the head files I have already included.
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <netdb.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
whatelse do i need?
I m running the code under linux.
g++
thnx