#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "uv.h"
#include "internal.h"
Go to the source code of this file.
◆ uv__getnameinfo_done()
static void uv__getnameinfo_done |
( |
struct uv__work * |
w, |
|
|
int |
status |
|
) |
| |
|
static |
Definition at line 55 of file getnameinfo.c.
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);
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
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)
#define uv__req_unregister(loop, req)
References assert(), container_of, NULL, req, status, uv__req_unregister, and w.
Referenced by uv_getnameinfo().
◆ uv__getnameinfo_work()
static void uv__getnameinfo_work |
( |
struct uv__work * |
w | ) |
|
|
static |
◆ uv_getnameinfo()
Definition at line 81 of file getnameinfo.c.
103 req->getnameinfo_cb = getnameinfo_cb;
105 req->type = UV_GETNAMEINFO;
109 if (getnameinfo_cb) {
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
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))
static void uv__getnameinfo_work(struct uv__work *w)
static void uv__getnameinfo_done(struct uv__work *w, int status)
#define uv__req_init(loop, req, typ)