62 host = service =
NULL;
64 if (
status == UV_ECANCELED) {
66 req->retcode = UV_EAI_CANCELED;
67 }
else if (
req->retcode == 0) {
69 service =
req->service;
72 if (
req->getnameinfo_cb)
73 req->getnameinfo_cb(
req,
req->retcode, host, service);
103 req->getnameinfo_cb = getnameinfo_cb;
105 req->type = UV_GETNAMEINFO;
109 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)
static void uv__getnameinfo_work(struct uv__work *w)
int uv_getnameinfo(uv_loop_t *loop, uv_getnameinfo_t *req, uv_getnameinfo_cb getnameinfo_cb, const struct sockaddr *addr, int flags)
static void uv__getnameinfo_done(struct uv__work *w, int status)
#define uv__req_init(loop, req, typ)
#define uv__req_unregister(loop, req)
void(* uv_getnameinfo_cb)(uv_getnameinfo_t *req, int status, const char *hostname, const char *service)