17#include "apr_private.h"
18#include "apr_arch_networkio.h"
21#if APR_HAVE_SYS_TYPES_H
24#if APR_HAVE_SYS_SOCKET_H
25#include <sys/socket.h>
27#if APR_HAVE_NETINET_IN_H
28#include <netinet/in.h>
30#if APR_HAVE_ARPA_INET_H
44#define INT16SZ sizeof(apr_int16_t)
51#if !defined(EAFNOSUPPORT) && defined(WSAEAFNOSUPPORT)
52#define EAFNOSUPPORT WSAEAFNOSUPPORT
113 unsigned char u = *
src++;
115 *next++ =
'0' +
u/100;
117 *next++ =
'0' +
u/10;
121 *next++ =
'0' +
u/10;
149 char tmp[
sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"], *tp;
172 if (
cur.base == -1) {
180 if (
cur.base != -1) {
191 if (
cur.base != -1) {
196 if (
best.base != -1 &&
best.len < 2) {
206 if (
i ==
best.base) {
216 if (
i == 6 &&
best.base == 0 &&
const char apr_size_t len
static const char * inet_ntop4(const unsigned char *src, char *dst, apr_size_t size)
const char * apr_inet_ntop(int af, const void *src, char *dst, apr_size_t size)
typedef int(WSAAPI *apr_winapi_fpt_WSAPoll)(IN OUT LPWSAPOLLFD fdArray