31 const SOCKADDR *pSockaddr,
35 PWCHAR pServiceBuffer,
36 DWORD ServiceBufferSize,
55 ret = WSAGetLastError();
60 ret = WideCharToMultiByte(CP_UTF8,
73 ret = WideCharToMultiByte(CP_UTF8,
97 host = service =
NULL;
99 if (
status == UV_ECANCELED) {
101 req->retcode = UV_EAI_CANCELED;
102 }
else if (
req->retcode == 0) {
104 service =
req->service;
107 if (
req->getnameinfo_cb)
108 req->getnameinfo_cb(
req,
req->retcode, host, service);
140 req->getnameinfo_cb = getnameinfo_cb;
145 if (getnameinfo_cb) {
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec req
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
static const char struct stat static buf struct stat static buf static vhangup int status
assert(limit<=UINT32_MAX/2)
#define container_of(ptr, type, member)
static struct sockaddr static addrlen static backlog const void static flags void flags
void uv__work_submit(uv_loop_t *loop, struct uv__work *w, enum uv__work_kind kind, void(*work)(struct uv__work *w), void(*done)(struct uv__work *w, int status))
int uv__getaddrinfo_translate_error(int sys_err)
int uv_getnameinfo(uv_loop_t *loop, uv_getnameinfo_t *req, uv_getnameinfo_cb getnameinfo_cb, const struct sockaddr *addr, int flags)
#define UV_REQ_INIT(req, typ)
#define uv__req_register(loop, req)
#define uv__req_unregister(loop, req)
UV_EXTERN int uv_translate_sys_error(int sys_errno)
void(* uv_getnameinfo_cb)(uv_getnameinfo_t *req, int status, const char *hostname, const char *service)
static void uv__getnameinfo_work(struct uv__work *w)
int WSAAPI GetNameInfoW(const SOCKADDR *pSockaddr, socklen_t SockaddrLength, PWCHAR pNodeBuffer, DWORD NodeBufferSize, PWCHAR pServiceBuffer, DWORD ServiceBufferSize, INT Flags)
static void uv__getnameinfo_done(struct uv__work *w, int status)