libUPnP 1.8.0
|
00001 00002 00003 #ifndef INET_PTON 00004 #define INET_PTON 00005 00006 00007 #ifdef WIN32 00008 00009 00010 #include "unixutil.h" 00011 00012 00013 #include <errno.h> 00014 #include <stdio.h> 00015 #include <string.h> 00016 00017 00040 extern const char *inet_ntop4(const u_char src, char *dst, socklen_t size); 00041 00042 00046 #ifdef INET_IPV6 00047 extern const char *inet_ntop6(const u_char *src, char *dst, socklen_t size); 00048 #endif /* INET_IPV6 */ 00049 00050 00058 extern inet_pton4(const char *src,u_char *dst); 00059 00060 00070 #ifdef INET_IPV6 00071 extern int inet_pton6(const char *src, u_char *dst); 00072 #endif /* INET_IPV6 */ 00073 00074 00081 extern const char *inet_ntop(int af,const void *src,char *dst,socklen_t size); 00082 00083 00093 extern int inet_pton(int af,const char *src,void *dst); 00094 00095 00096 #endif /* WIN32 */ 00097 00098 00099 #endif /* INET_PTON */ 00100