libUPnP  1.8.0
inet_pton.h
1 
2 
3 #ifndef INET_PTON
4 #define INET_PTON
5 
6 
7 #ifdef WIN32
8 
9 
10 #include "unixutil.h"
11 
12 
13 #include <errno.h>
14 #include <stdio.h>
15 #include <string.h>
16 
17 
40 extern const char *inet_ntop4(const u_char src, char *dst, socklen_t size);
41 
42 
46 #ifdef INET_IPV6
47 extern const char *inet_ntop6(const u_char *src, char *dst, socklen_t size);
48 #endif /* INET_IPV6 */
49 
50 
58 extern inet_pton4(const char *src,u_char *dst);
59 
60 
70 #ifdef INET_IPV6
71 extern int inet_pton6(const char *src, u_char *dst);
72 #endif /* INET_IPV6 */
73 
74 
81 extern const char *inet_ntop(int af,const void *src,char *dst,socklen_t size);
82 
83 
93 extern int inet_pton(int af,const char *src,void *dst);
94 
95 
96 #endif /* WIN32 */
97 
98 
99 #endif /* INET_PTON */
100