10 #ifndef __WS_INET_ADDR_H__ 11 #define __WS_INET_ADDR_H__ 13 #include "ws_symbol_export.h" 14 #include "ws_attributes.h" 16 #ifdef HAVE_NETINET_IN_H 17 #include <netinet/in.h> 21 #include "inet_ipv4.h" 22 #include "inet_ipv6.h" 53 #ifdef INET_ADDRSTRLEN 54 #define WS_INET_ADDRSTRLEN INET_ADDRSTRLEN 56 #define WS_INET_ADDRSTRLEN 16 58 #ifdef INET6_ADDRSTRLEN 59 #define WS_INET6_ADDRSTRLEN INET6_ADDRSTRLEN 61 #define WS_INET6_ADDRSTRLEN 46 68 WS_DLL_PUBLIC WS_RETNONNULL
const gchar *
69 ws_inet_ntop4(gconstpointer src, gchar *dst, guint dst_size);
71 WS_DLL_PUBLIC WS_RETNONNULL
const gchar *
72 ws_inet_ntop6(gconstpointer src, gchar *dst, guint dst_size);
74 WS_DLL_PUBLIC gboolean
75 ws_inet_pton4(
const gchar *src, ws_in4_addr *dst);
77 WS_DLL_PUBLIC gboolean
Definition: inet_ipv6.h:20