#include <stdlib.h>
#include <stdio.h>
#include <winsock2.h>
#include <windows.h>
#include <sys/types.h>
#include <time.h>
#include <errno.h>
#include <assert.h>
#include <limits.h>
#include <malloc.h>
#include <signal.h>
Go to the source code of this file.
Data Structures |
| struct | iovec |
Defines |
| #define | ADNS_API |
| #define | HAVE_WINSOCK 1 |
| #define | inline __inline |
| #define | ADNS_SOCKET SOCKET |
| #define | adns_socket_close(sck) closesocket(sck) |
| #define | adns_socket_read(sck, data, len) recv(sck, (char *)data, len, 0) |
| #define | adns_socket_write(sck, data, len) send(sck, (char *)data, len, 0) |
| #define | ADNS_CAPTURE_ERRNO {errno = WSAGetLastError(); WSASetLastError(errno);} |
| #define | ADNS_CLEAR_ERRNO {WSASetLastError(errno = 0);} |
| #define | ENOBUFS WSAENOBUFS |
| #define | EWOULDBLOCK WSAEWOULDBLOCK |
| #define | EINPROGRESS WSAEINPROGRESS |
| #define | EMSGSIZE WSAEMSGSIZE |
| #define | ENOPROTOOPT WSAENOPROTOOPT |
| #define | ECONNRESET WSAECONNRESET |
| #define | gettimeofday(tv, tz) adns_gettimeofday(tv, tz) |
| #define | writev(FileDescriptor, iov, iovCount) adns_writev(FileDescriptor, iov, iovCount) |
| #define | inet_aton(ap, inp) adns_inet_aton(ap, inp) |
| #define | getpid() adns_getpid() |
Functions |
| ADNS_API int | adns_gettimeofday (struct timeval *tv, struct timezone *tz) |
| ADNS_API int | adns_writev (int FileDescriptor, const struct iovec *iov, int iovCount) |
| ADNS_API int | adns_inet_aton (const char *cp, struct in_addr *inp) |
| ADNS_API int | adns_getpid () |