17#include "apr_private.h"
18#include "apr_arch_networkio.h"
20#if APR_HAVE_SYS_TYPES_H
23#if APR_HAVE_SYS_SOCKET_H
24#include <sys/socket.h>
26#if APR_HAVE_NETINET_IN_H
27#include <netinet/in.h>
29#if APR_HAVE_ARPA_INET_H
42#define INT16SZ sizeof(apr_int16_t)
53#if !defined(EAFNOSUPPORT) && defined(WSAEAFNOSUPPORT)
54#define EAFNOSUPPORT WSAEAFNOSUPPORT
108 static const char digits[] =
"0123456789";
115 while ((
ch = *
src++) !=
'\0') {
119 unsigned int new = *tp * 10 + (
unsigned int)(
pch -
digits);
161 static const char xdigits_l[] =
"0123456789abcdef",
178 while ((
ch = *
src++) !=
'\0') {
201 *tp++ = (
unsigned char) (
val >> 8) & 0xff;
202 *tp++ = (
unsigned char)
val & 0xff;
218 *tp++ = (
unsigned char) (
val >> 8) & 0xff;
219 *tp++ = (
unsigned char)
val & 0xff;
229 for (
i = 1;
i <=
n;
i++) {
int apr_inet_pton(int af, const char *src, void *dst)
static int inet_pton4(const char *src, unsigned char *dst)
typedef int(WSAAPI *apr_winapi_fpt_WSAPoll)(IN OUT LPWSAPOLLFD fdArray