Rizin
unix-like reverse engineering framework and cli tools
|
#include <assert.h>
#include "uv.h"
#include "internal.h"
#include "req-inl.h"
#include "idna.h"
#include <winsock2.h>
#include <iphlpapi.h>
Go to the source code of this file.
Classes | |
struct | addrinfoW |
Macros | |
#define | ALIGNED_SIZE(X) ((((X) + 3) >> 2) << 2) |
#define | NDIS_IF_MAX_STRING_SIZE IF_MAX_STRING_SIZE |
Typedefs | |
typedef struct addrinfoW | ADDRINFOW |
typedef struct addrinfoW * | PADDRINFOW |
Functions | |
int | uv__getaddrinfo_translate_error (int sys_err) |
DECLSPEC_IMPORT int WSAAPI | GetAddrInfoW (const WCHAR *node, const WCHAR *service, const ADDRINFOW *hints, PADDRINFOW *result) |
DECLSPEC_IMPORT void WSAAPI | FreeAddrInfoW (PADDRINFOW pAddrInfo) |
static void | uv__getaddrinfo_work (struct uv__work *w) |
static void | uv__getaddrinfo_done (struct uv__work *w, int status) |
void | uv_freeaddrinfo (struct addrinfo *ai) |
int | uv_getaddrinfo (uv_loop_t *loop, uv_getaddrinfo_t *req, uv_getaddrinfo_cb getaddrinfo_cb, const char *node, const char *service, const struct addrinfo *hints) |
int | uv_if_indextoname (unsigned int ifindex, char *buffer, size_t *size) |
int | uv_if_indextoiid (unsigned int ifindex, char *buffer, size_t *size) |
Definition at line 77 of file getaddrinfo.c.
#define NDIS_IF_MAX_STRING_SIZE IF_MAX_STRING_SIZE |
Definition at line 80 of file getaddrinfo.c.
typedef struct addrinfoW * PADDRINFOW |
DECLSPEC_IMPORT void WSAAPI FreeAddrInfoW | ( | PADDRINFOW | pAddrInfo | ) |
Referenced by uv__getaddrinfo_done().
DECLSPEC_IMPORT int WSAAPI GetAddrInfoW | ( | const WCHAR * | node, |
const WCHAR * | service, | ||
const ADDRINFOW * | hints, | ||
PADDRINFOW * | result | ||
) |
Referenced by uv__getaddrinfo_work().
Definition at line 105 of file getaddrinfo.c.
References addrinfoW::ai_addr, addrinfoW::ai_addrlen, addrinfoW::ai_canonname, addrinfoW::ai_family, addrinfoW::ai_flags, addrinfoW::ai_next, addrinfoW::ai_protocol, addrinfoW::ai_socktype, ALIGNED_SIZE, assert(), container_of, FreeAddrInfoW(), memcpy(), NULL, req, status, uv__free(), uv__malloc(), uv__req_unregister, uv_translate_sys_error(), and w.
Referenced by uv_getaddrinfo().
|
static |
Definition at line 83 of file getaddrinfo.c.
References container_of, err, GetAddrInfoW(), NULL, req, uv__getaddrinfo_translate_error(), and w.
Referenced by uv_getaddrinfo().
void uv_freeaddrinfo | ( | struct addrinfo * | ai | ) |
int uv_getaddrinfo | ( | uv_loop_t * | loop, |
uv_getaddrinfo_t * | req, | ||
uv_getaddrinfo_cb | getaddrinfo_cb, | ||
const char * | node, | ||
const char * | service, | ||
const struct addrinfo * | hints | ||
) |
Definition at line 257 of file getaddrinfo.c.
References ALIGNED_SIZE, cb, err, error(), len, loop, memcpy(), NULL, req, uv__free(), uv__getaddrinfo_done(), uv__getaddrinfo_work(), uv__idna_toascii(), uv__malloc(), uv__req_init, uv__req_register, UV__WORK_SLOW_IO, uv__work_submit(), UV_REQ_INIT, and uv_translate_sys_error().
Referenced by main().
Definition at line 445 of file getaddrinfo.c.
References NULL, r, snprintf, uv_if_indextoname(), and uv_translate_sys_error().
Definition at line 399 of file getaddrinfo.c.
References ARRAY_SIZE, DWORD, len, memcpy(), NDIS_IF_MAX_STRING_SIZE, NULL, r, strnlen(), UV__ERR, UV_IF_NAMESIZE, and uv_translate_sys_error().