#ifndef INET_H #define INET_H #include #include #include #include #include #ifdef HAVE_FCNTL_H # include #endif #include #ifdef HAVE_SYS_POLL_H # include #endif #ifndef AF_INET6 # define AF_INET6 10 #endif typedef struct _opm_sockaddr opm_sockaddr; typedef struct _opm_inaddr opm_inaddr; struct _opm_sockaddr { struct sockaddr_in sa4; }; struct _opm_inaddr { struct in_addr in4; }; #ifndef HAVE_INET_PTON extern int inet_pton(int, const char *, void *); #endif extern const char *inetntop(int, const void *, char *, unsigned int); extern struct hostent *opm_gethostbyname(const char *); #endif /* INET_H */