inet_pton.h
#ifndef INET_PTON
#define INET_PTON
#ifdef WIN32
#include "unixutil.h"
#include <errno.h>
#include <stdio.h>
#include <string.h>
extern const char *inet_ntop4(const u_char src, char *dst, socklen_t size);
#ifdef INET_IPV6
extern const char *inet_ntop6(const u_char *src, char *dst, socklen_t size);
#endif /* INET_IPV6 */
extern inet_pton4(const char *src,u_char *dst);
#ifdef INET_IPV6
extern int inet_pton6(const char *src, u_char *dst);
#endif /* INET_IPV6 */
extern const char *inet_ntop(int af,const void *src,char *dst,socklen_t size);
extern int inet_pton(int af,const char *src,void *dst);
#endif /* WIN32 */
#endif /* INET_PTON */