Go to the documentation of this file.
30 #if defined(BUILDING_UV_SHARED) && defined(USING_UV_SHARED)
31 #error "Define either BUILDING_UV_SHARED or USING_UV_SHARED, not both."
36 # if defined(BUILDING_UV_SHARED)
38 # define UV_EXTERN __declspec(dllexport)
39 # elif defined(USING_UV_SHARED)
41 # define UV_EXTERN __declspec(dllimport)
47 # define UV_EXTERN __attribute__((visibility("default")))
57 #if defined(_MSC_VER) && _MSC_VER < 1600
70 #define UV_ERRNO_MAP(XX) \
71 XX(E2BIG, "argument list too long") \
72 XX(EACCES, "permission denied") \
73 XX(EADDRINUSE, "address already in use") \
74 XX(EADDRNOTAVAIL, "address not available") \
75 XX(EAFNOSUPPORT, "address family not supported") \
76 XX(EAGAIN, "resource temporarily unavailable") \
77 XX(EAI_ADDRFAMILY, "address family not supported") \
78 XX(EAI_AGAIN, "temporary failure") \
79 XX(EAI_BADFLAGS, "bad ai_flags value") \
80 XX(EAI_BADHINTS, "invalid value for hints") \
81 XX(EAI_CANCELED, "request canceled") \
82 XX(EAI_FAIL, "permanent failure") \
83 XX(EAI_FAMILY, "ai_family not supported") \
84 XX(EAI_MEMORY, "out of memory") \
85 XX(EAI_NODATA, "no address") \
86 XX(EAI_NONAME, "unknown node or service") \
87 XX(EAI_OVERFLOW, "argument buffer overflow") \
88 XX(EAI_PROTOCOL, "resolved protocol is unknown") \
89 XX(EAI_SERVICE, "service not available for socket type") \
90 XX(EAI_SOCKTYPE, "socket type not supported") \
91 XX(EALREADY, "connection already in progress") \
92 XX(EBADF, "bad file descriptor") \
93 XX(EBUSY, "resource busy or locked") \
94 XX(ECANCELED, "operation canceled") \
95 XX(ECHARSET, "invalid Unicode character") \
96 XX(ECONNABORTED, "software caused connection abort") \
97 XX(ECONNREFUSED, "connection refused") \
98 XX(ECONNRESET, "connection reset by peer") \
99 XX(EDESTADDRREQ, "destination address required") \
100 XX(EEXIST, "file already exists") \
101 XX(EFAULT, "bad address in system call argument") \
102 XX(EFBIG, "file too large") \
103 XX(EHOSTUNREACH, "host is unreachable") \
104 XX(EINTR, "interrupted system call") \
105 XX(EINVAL, "invalid argument") \
106 XX(EIO, "i/o error") \
107 XX(EISCONN, "socket is already connected") \
108 XX(EISDIR, "illegal operation on a directory") \
109 XX(ELOOP, "too many symbolic links encountered") \
110 XX(EMFILE, "too many open files") \
111 XX(EMSGSIZE, "message too long") \
112 XX(ENAMETOOLONG, "name too long") \
113 XX(ENETDOWN, "network is down") \
114 XX(ENETUNREACH, "network is unreachable") \
115 XX(ENFILE, "file table overflow") \
116 XX(ENOBUFS, "no buffer space available") \
117 XX(ENODEV, "no such device") \
118 XX(ENOENT, "no such file or directory") \
119 XX(ENOMEM, "not enough memory") \
120 XX(ENONET, "machine is not on the network") \
121 XX(ENOPROTOOPT, "protocol not available") \
122 XX(ENOSPC, "no space left on device") \
123 XX(ENOSYS, "function not implemented") \
124 XX(ENOTCONN, "socket is not connected") \
125 XX(ENOTDIR, "not a directory") \
126 XX(ENOTEMPTY, "directory not empty") \
127 XX(ENOTSOCK, "socket operation on non-socket") \
128 XX(ENOTSUP, "operation not supported on socket") \
129 XX(EPERM, "operation not permitted") \
130 XX(EPIPE, "broken pipe") \
131 XX(EPROTO, "protocol error") \
132 XX(EPROTONOSUPPORT, "protocol not supported") \
133 XX(EPROTOTYPE, "protocol wrong type for socket") \
134 XX(ERANGE, "result too large") \
135 XX(EROFS, "read-only file system") \
136 XX(ESHUTDOWN, "cannot send after transport endpoint shutdown") \
137 XX(ESPIPE, "invalid seek") \
138 XX(ESRCH, "no such process") \
139 XX(ETIMEDOUT, "connection timed out") \
140 XX(ETXTBSY, "text file is busy") \
141 XX(EXDEV, "cross-device link not permitted") \
142 XX(UNKNOWN, "unknown error") \
143 XX(EOF, "end of file") \
144 XX(ENXIO, "no such device or address") \
145 XX(EMLINK, "too many links") \
146 XX(EHOSTDOWN, "host is down") \
147 XX(EREMOTEIO, "remote I/O error") \
148 XX(ENOTTY, "inappropriate ioctl for device") \
149 XX(EFTYPE, "inappropriate file type or format") \
150 XX(EILSEQ, "illegal byte sequence") \
152 #define UV_HANDLE_TYPE_MAP(XX) \
155 XX(FS_EVENT, fs_event) \
156 XX(FS_POLL, fs_poll) \
159 XX(NAMED_PIPE, pipe) \
161 XX(PREPARE, prepare) \
162 XX(PROCESS, process) \
170 #define UV_REQ_TYPE_MAP(XX) \
172 XX(CONNECT, connect) \
174 XX(SHUTDOWN, shutdown) \
175 XX(UDP_SEND, udp_send) \
178 XX(GETADDRINFO, getaddrinfo) \
179 XX(GETNAMEINFO, getnameinfo) \
183 #define XX(code, _) UV_ ## code = UV__ ## code,
191 #define XX(uc, lc) UV_##uc,
200 #define XX(uc, lc) UV_##uc,
263 typedef void* (*uv_malloc_func)(
size_t size);
264 typedef void* (*uv_realloc_func)(
void*
ptr,
size_t size);
265 typedef void* (*uv_calloc_func)(
size_t count,
size_t size);
307 size_t suggested_size,
333 const char* hostname,
394 #define UV_REQ_FIELDS \
401 UV_REQ_PRIVATE_FIELDS \
425 #define UV_HANDLE_FIELDS \
430 uv_handle_type type; \
432 uv_close_cb close_cb; \
433 void* handle_queue[2]; \
438 UV_HANDLE_PRIVATE_FIELDS \
476 #define UV_STREAM_FIELDS \
478 size_t write_queue_size; \
479 uv_alloc_cb alloc_cb; \
480 uv_read_cb read_cb; \
482 UV_STREAM_PRIVATE_FIELDS
565 const struct sockaddr*
addr,
568 struct sockaddr*
name,
571 struct sockaddr*
name,
576 const struct sockaddr*
addr,
625 const struct sockaddr*
addr,
656 const struct sockaddr*
addr,
661 struct sockaddr*
name,
664 struct sockaddr*
name,
667 const char* multicast_addr,
668 const char* interface_addr,
671 const char* multicast_addr,
672 const char* interface_addr,
673 const char* source_addr,
678 const char* interface_addr);
685 const struct sockaddr*
addr,
690 const struct sockaddr*
addr);
905 const struct sockaddr*
addr,
1190 #if defined(__PASE__)
1192 # define UV_PRIORITY_LOW 39 // RUNPTY(99)
1193 # define UV_PRIORITY_BELOW_NORMAL 15 // RUNPTY(50)
1194 # define UV_PRIORITY_NORMAL 0 // RUNPTY(20)
1195 # define UV_PRIORITY_ABOVE_NORMAL -4 // RUNTY(12)
1196 # define UV_PRIORITY_HIGH -7 // RUNPTY(6)
1197 # define UV_PRIORITY_HIGHEST -10 // RUNPTY(1)
1199 # define UV_PRIORITY_LOW 19
1200 # define UV_PRIORITY_BELOW_NORMAL 10
1201 # define UV_PRIORITY_NORMAL 0
1202 # define UV_PRIORITY_ABOVE_NORMAL -7
1203 # define UV_PRIORITY_HIGH -14
1204 # define UV_PRIORITY_HIGHEST -20
1229 #ifdef MAXHOSTNAMELEN
1230 # define UV_MAXHOSTNAMESIZE (MAXHOSTNAMELEN + 1)
1237 # define UV_MAXHOSTNAMESIZE 256
1345 #define UV_FS_COPYFILE_EXCL 0x0001
1351 #define UV_FS_COPYFILE_FICLONE 0x0002
1357 #define UV_FS_COPYFILE_FICLONE_FORCE 0x0004
1362 const char* new_path,
1412 const char* new_path,
1469 const char* new_path,
1476 #define UV_FS_SYMLINK_DIR 0x0001
1482 #define UV_FS_SYMLINK_JUNCTION 0x0002
1487 const char* new_path,
1554 unsigned int interval);
1615 unsigned int flags);
1650 #if defined(IF_NAMESIZE)
1651 # define UV_IF_NAMESIZE (IF_NAMESIZE + 1)
1652 #elif defined(IFNAMSIZ)
1653 # define UV_IF_NAMESIZE (IFNAMSIZ + 1)
1655 # define UV_IF_NAMESIZE (16 + 1)
1756 #define XX(_, name) uv_ ## name ## _t name;
1786 #undef UV_HANDLE_TYPE_PRIVATE
1787 #undef UV_REQ_TYPE_PRIVATE
1788 #undef UV_REQ_PRIVATE_FIELDS
1789 #undef UV_STREAM_PRIVATE_FIELDS
1790 #undef UV_TCP_PRIVATE_FIELDS
1791 #undef UV_PREPARE_PRIVATE_FIELDS
1792 #undef UV_CHECK_PRIVATE_FIELDS
1793 #undef UV_IDLE_PRIVATE_FIELDS
1794 #undef UV_ASYNC_PRIVATE_FIELDS
1795 #undef UV_TIMER_PRIVATE_FIELDS
1796 #undef UV_GETADDRINFO_PRIVATE_FIELDS
1797 #undef UV_GETNAMEINFO_PRIVATE_FIELDS
1798 #undef UV_FS_REQ_PRIVATE_FIELDS
1799 #undef UV_WORK_PRIVATE_FIELDS
1800 #undef UV_FS_EVENT_PRIVATE_FIELDS
1801 #undef UV_SIGNAL_PRIVATE_FIELDS
1802 #undef UV_LOOP_PRIVATE_FIELDS
1803 #undef UV_LOOP_PRIVATE_PLATFORM_FIELDS
UV_EXTERN int uv_if_indextoname(unsigned int ifindex, char *buffer, size_t *size)
UV_EXTERN int uv_udp_set_multicast_ttl(uv_udp_t *handle, int ttl)
UV_EXTERN int uv_rwlock_tryrdlock(uv_rwlock_t *rwlock)
UV_EXTERN void uv_os_free_passwd(uv_passwd_t *pwd)
UV_EXTERN int uv_pipe_pending_count(uv_pipe_t *handle)
UV_EXTERN int uv_udp_set_broadcast(uv_udp_t *handle, int on)
UV_EXTERN int uv_fs_poll_init(uv_loop_t *loop, uv_fs_poll_t *handle)
#define UV_TTY_PRIVATE_FIELDS
UV_EXTERN int uv_fs_access(uv_loop_t *loop, uv_fs_t *req, const char *path, int mode, uv_fs_cb cb)
UV_EXTERN int uv_fs_rmdir(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
UV_EXTERN int uv_ip6_addr(const char *ip, int port, struct sockaddr_in6 *addr)
UV_EXTERN uv_handle_type uv_guess_handle(uv_file file)
UV_EXTERN int uv_inet_pton(int af, const char *src, void *dst)
UV_EXTERN int uv_os_setenv(const char *name, const char *value)
void *(* uv_calloc_func)(size_t count, size_t size)
UV_EXTERN size_t uv_loop_size(void)
UV_EXTERN int uv_sem_trywait(uv_sem_t *sem)
UV_EXTERN char * uv_strerror_r(int err, char *buf, size_t buflen)
UV_HANDLE_FIELDS uv_signal_cb signal_cb
void *(* uv_realloc_func)(void *ptr, size_t size)
UV_EXTERN int uv_fs_open(uv_loop_t *loop, uv_fs_t *req, const char *path, int flags, int mode, uv_fs_cb cb)
UV_EXTERN uint64_t uv_timer_get_repeat(const uv_timer_t *handle)
#define UV_PROCESS_PRIVATE_FIELDS
UV_EXTERN int uv_prepare_init(uv_loop_t *, uv_prepare_t *prepare)
UV_EXTERN int uv_timer_again(uv_timer_t *handle)
static void read_cb(uv_stream_t *stream, ssize_t nread, const uv_buf_t *buf)
UV_EXTERN int uv_fs_symlink(uv_loop_t *loop, uv_fs_t *req, const char *path, const char *new_path, int flags, uv_fs_cb cb)
unsigned int active_handles
void(* uv_signal_cb)(uv_signal_t *handle, int signum)
UV_EXTERN void uv_pipe_connect(uv_connect_t *req, uv_pipe_t *handle, const char *name, uv_connect_cb cb)
UV_EXTERN int uv_fs_copyfile(uv_loop_t *loop, uv_fs_t *req, const char *path, const char *new_path, int flags, uv_fs_cb cb)
UV_EXTERN int uv_cpu_info(uv_cpu_info_t **cpu_infos, int *count)
UV_EXTERN int uv_pipe_init(uv_loop_t *, uv_pipe_t *handle, int ipc)
UV_EXTERN uint64_t uv_get_free_memory(void)
UV_REQ_FIELDS uv_loop_t * loop
UV_EXTERN uint64_t uv_now(const uv_loop_t *)
UV_EXTERN void uv_disable_stdio_inheritance(void)
UV_EXTERN ssize_t uv_fs_get_result(const uv_fs_t *)
UV_EXTERN void uv_free_cpu_info(uv_cpu_info_t *cpu_infos, int count)
UV_EXTERN int uv_poll_init_socket(uv_loop_t *loop, uv_poll_t *handle, uv_os_sock_t socket)
UV_EXTERN int uv_kill(int pid, int signum)
UV_EXTERN uv_pid_t uv_os_getpid(void)
const UV_EXTERN char * uv_handle_type_name(uv_handle_type type)
UV_EXTERN void uv_loop_set_data(uv_loop_t *, void *data)
UV_EXTERN int uv_mutex_init(uv_mutex_t *handle)
UV_EXTERN int uv_fs_stat(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
#define UV_PREPARE_PRIVATE_FIELDS
UV_EXTERN int uv_tcp_keepalive(uv_tcp_t *handle, int enable, unsigned int delay)
UV_EXTERN int uv_poll_init(uv_loop_t *loop, uv_poll_t *handle, int fd)
UV_EXTERN int uv_signal_init(uv_loop_t *loop, uv_signal_t *handle)
UV_EXTERN int uv_os_get_passwd(uv_passwd_t *pwd)
@ UV_THREAD_HAS_STACK_SIZE
UV_EXTERN int uv_fs_sendfile(uv_loop_t *loop, uv_fs_t *req, uv_file out_fd, uv_file in_fd, int64_t in_offset, size_t length, uv_fs_cb cb)
UV_EXTERN int uv_os_getenv(const char *name, char *buffer, size_t *size)
UV_EXTERN int uv_listen(uv_stream_t *stream, int backlog, uv_connection_cb cb)
UV_EXTERN void uv_barrier_destroy(uv_barrier_t *barrier)
UV_EXTERN int uv_pipe_getpeername(const uv_pipe_t *handle, char *buffer, size_t *size)
UV_EXTERN void uv_mutex_destroy(uv_mutex_t *handle)
UV_EXTERN int uv_tcp_simultaneous_accepts(uv_tcp_t *handle, int enable)
UV_EXTERN int uv_udp_send(uv_udp_send_t *req, uv_udp_t *handle, const uv_buf_t bufs[], unsigned int nbufs, const struct sockaddr *addr, uv_udp_send_cb send_cb)
UV_EXTERN int uv_send_buffer_size(uv_handle_t *handle, int *value)
UV_EXTERN int uv_prepare_stop(uv_prepare_t *prepare)
UV_EXTERN int uv_fs_readdir(uv_loop_t *loop, uv_fs_t *req, uv_dir_t *dir, uv_fs_cb cb)
UV_EXTERN int uv_fs_lutime(uv_loop_t *loop, uv_fs_t *req, const char *path, double atime, double mtime, uv_fs_cb cb)
UV_EXTERN int uv_fs_readlink(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
void(* uv_read_cb)(uv_stream_t *stream, ssize_t nread, const uv_buf_t *buf)
static void alloc_cb(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf)
UV_EXTERN int uv_udp_set_membership(uv_udp_t *handle, const char *multicast_addr, const char *interface_addr, uv_membership membership)
static void send_cb(uv_udp_send_t *req, int status)
UV_EXTERN char * uv_err_name_r(int err, char *buf, size_t buflen)
@ UV_FS_EVENT_WATCH_ENTRY
#define UV_GETADDRINFO_PRIVATE_FIELDS
#define UV_PIPE_PRIVATE_FIELDS
const UV_EXTERN char * uv_fs_get_path(const uv_fs_t *)
void(* uv_walk_cb)(uv_handle_t *handle, void *arg)
UV_EXTERN int uv_dlopen(const char *filename, uv_lib_t *lib)
void(* uv_fs_cb)(uv_fs_t *req)
UV_EXTERN int uv_signal_start_oneshot(uv_signal_t *handle, uv_signal_cb signal_cb, int signum)
UV_EXTERN uint64_t uv_get_total_memory(void)
const UV_EXTERN char * uv_strerror(int err)
UV_EXTERN void * uv_loop_get_data(const uv_loop_t *)
UV_EXTERN int uv_thread_join(uv_thread_t *tid)
UV_EXTERN uv_thread_t uv_thread_self(void)
#define UV_FS_EVENT_PRIVATE_FIELDS
UV_EXTERN int uv_udp_getsockname(const uv_udp_t *handle, struct sockaddr *name, int *namelen)
UV_EXTERN int uv_thread_equal(const uv_thread_t *t1, const uv_thread_t *t2)
UV_EXTERN int uv_fs_poll_stop(uv_fs_poll_t *handle)
UV_EXTERN int uv_udp_connect(uv_udp_t *handle, const struct sockaddr *addr)
UV_REQ_FIELDS uv_loop_t * loop
UV_EXTERN int uv_timer_stop(uv_timer_t *handle)
UV_EXTERN int uv_run(uv_loop_t *, uv_run_mode mode)
UV_EXTERN int uv_fs_event_stop(uv_fs_event_t *handle)
UV_EXTERN void uv_key_delete(uv_key_t *key)
UV_EXTERN int uv_queue_work(uv_loop_t *loop, uv_work_t *req, uv_work_cb work_cb, uv_after_work_cb after_work_cb)
UV_EXTERN int uv_os_gethostname(char *buffer, size_t *size)
UV_EXTERN int uv_tcp_getsockname(const uv_tcp_t *handle, struct sockaddr *name, int *namelen)
UV_EXTERN int uv_interface_addresses(uv_interface_address_t **addresses, int *count)
UV_EXTERN int uv_is_closing(const uv_handle_t *handle)
UV_EXTERN void * uv_req_get_data(const uv_req_t *req)
#define UV_PRIVATE_REQ_TYPES
void(* uv_poll_cb)(uv_poll_t *handle, int status, int events)
UV_EXTERN void uv_cond_wait(uv_cond_t *cond, uv_mutex_t *mutex)
UV_EXTERN int uv_fs_mkdir(uv_loop_t *loop, uv_fs_t *req, const char *path, int mode, uv_fs_cb cb)
void(* uv_check_cb)(uv_check_t *handle)
#define UV_HANDLE_TYPE_MAP(XX)
UV_EXTERN int uv_poll_start(uv_poll_t *handle, int events, uv_poll_cb cb)
UV_EXTERN void uv_unref(uv_handle_t *)
UV_EXTERN int uv_tcp_bind(uv_tcp_t *handle, const struct sockaddr *addr, unsigned int flags)
struct uv_cpu_times_s cpu_times
UV_EXTERN int uv_fs_futime(uv_loop_t *loop, uv_fs_t *req, uv_file file, double atime, double mtime, uv_fs_cb cb)
union uv_interface_address_s::@401 netmask
#define UV_TIMER_PRIVATE_FIELDS
UV_EXTERN void uv_close(uv_handle_t *handle, uv_close_cb close_cb)
UV_REQ_FIELDS uv_connect_cb cb
void(* uv_alloc_cb)(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf)
void(* uv_getaddrinfo_cb)(uv_getaddrinfo_t *req, int status, struct addrinfo *res)
UV_EXTERN void uv_rwlock_destroy(uv_rwlock_t *rwlock)
void(* uv_free_func)(void *ptr)
UV_EXTERN int uv_os_uname(uv_utsname_t *buffer)
UV_EXTERN int uv_tcp_connect(uv_connect_t *req, uv_tcp_t *handle, const struct sockaddr *addr, uv_connect_cb cb)
UV_EXTERN int uv_os_getpriority(uv_pid_t pid, int *priority)
UV_EXTERN int uv_fs_statfs(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
UV_EXTERN int uv_tcp_open(uv_tcp_t *handle, uv_os_sock_t sock)
UV_EXTERN int uv_ip4_addr(const char *ip, int port, struct sockaddr_in *addr)
UV_EXTERN int uv_fs_unlink(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
UV_EXTERN int uv_idle_stop(uv_idle_t *idle)
UV_EXTERN int uv_fs_event_getpath(uv_fs_event_t *handle, char *buffer, size_t *size)
#define UV_WRITE_PRIVATE_FIELDS
UV_EXTERN int uv_getnameinfo(uv_loop_t *loop, uv_getnameinfo_t *req, uv_getnameinfo_cb getnameinfo_cb, const struct sockaddr *addr, int flags)
UV_EXTERN void uv_print_all_handles(uv_loop_t *loop, FILE *stream)
UV_EXTERN void uv_req_set_data(uv_req_t *req, void *data)
#define UV_IDLE_PRIVATE_FIELDS
UV_EXTERN void uv_walk(uv_loop_t *loop, uv_walk_cb walk_cb, void *arg)
UV_EXTERN int uv_loop_close(uv_loop_t *loop)
UV_EXTERN int uv_tcp_getpeername(const uv_tcp_t *handle, struct sockaddr *name, int *namelen)
std::unique_ptr< Server > server
UV_EXTERN void uv_update_time(uv_loop_t *)
UV_EXTERN void * uv_key_get(uv_key_t *key)
UV_EXTERN int uv_udp_init(uv_loop_t *, uv_udp_t *handle)
UV_EXTERN uv_loop_t * uv_default_loop(void)
UV_EXTERN int uv_uptime(double *uptime)
UV_EXTERN int uv_fs_mkstemp(uv_loop_t *loop, uv_fs_t *req, const char *tpl, uv_fs_cb cb)
UV_EXTERN uv_req_type uv_req_get_type(const uv_req_t *req)
uv_stdio_container_t * stdio
void(* uv_random_cb)(uv_random_t *req, int status, void *buf, size_t buflen)
UV_EXTERN int uv_loop_fork(uv_loop_t *loop)
UV_EXTERN int uv_fs_mkdtemp(uv_loop_t *loop, uv_fs_t *req, const char *tpl, uv_fs_cb cb)
#define UV_FS_PRIVATE_FIELDS
UV_EXTERN uv_stat_t * uv_fs_get_statbuf(uv_fs_t *)
uv_after_work_cb after_work_cb
UV_REQ_FIELDS uv_loop_t * loop
UV_EXTERN int uv_write(uv_write_t *req, uv_stream_t *handle, const uv_buf_t bufs[], unsigned int nbufs, uv_write_cb cb)
UV_EXTERN int uv_is_readable(const uv_stream_t *handle)
const UV_EXTERN char * uv_req_type_name(uv_req_type type)
UV_EXTERN int uv_udp_set_multicast_loop(uv_udp_t *handle, int on)
UV_EXTERN void uv_once(uv_once_t *guard, void(*callback)(void))
UV_EXTERN int uv_barrier_init(uv_barrier_t *barrier, unsigned int count)
UV_EXTERN void uv_free_interface_addresses(uv_interface_address_t *addresses, int count)
UV_EXTERN size_t uv_stream_get_write_queue_size(const uv_stream_t *stream)
UV_EXTERN void uv_cond_destroy(uv_cond_t *cond)
UV_EXTERN int uv_translate_sys_error(int sys_errno)
static void work_cb(uv_work_t *req)
static void getnameinfo_cb(uv_getnameinfo_t *handle, int status, const char *hostname, const char *service)
UV_EXTERN void uv_dlclose(uv_lib_t *lib)
const UV_EXTERN char * uv_version_string(void)
UV_EXTERN int uv_thread_create_ex(uv_thread_t *tid, const uv_thread_options_t *params, uv_thread_cb entry, void *arg)
UV_EXTERN int uv_tcp_close_reset(uv_tcp_t *handle, uv_close_cb close_cb)
#define UV_ASYNC_PRIVATE_FIELDS
#define UV_CHECK_PRIVATE_FIELDS
UV_EXTERN int uv_backend_fd(const uv_loop_t *)
UV_PRIVATE_REQ_TYPES UV_EXTERN int uv_shutdown(uv_shutdown_t *req, uv_stream_t *handle, uv_shutdown_cb cb)
static void signal_cb(uv_signal_t *signal, int signum)
UV_EXTERN int uv_cwd(char *buffer, size_t *size)
unsigned __int64 uint64_t
UV_EXTERN int uv_is_active(const uv_handle_t *handle)
void(* uv_getnameinfo_cb)(uv_getnameinfo_t *req, int status, const char *hostname, const char *service)
UV_EXTERN int uv_udp_getpeername(const uv_udp_t *handle, struct sockaddr *name, int *namelen)
UV_EXTERN char ** uv_setup_args(int argc, char **argv)
UV_EXTERN int uv_read_start(uv_stream_t *, uv_alloc_cb alloc_cb, uv_read_cb read_cb)
UV_EXTERN void uv_rwlock_wrlock(uv_rwlock_t *rwlock)
UV_EXTERN int uv_fs_fsync(uv_loop_t *loop, uv_fs_t *req, uv_file file, uv_fs_cb cb)
UV_EXTERN int uv_os_environ(uv_env_item_t **envitems, int *count)
UV_EXTERN void uv_rwlock_wrunlock(uv_rwlock_t *rwlock)
UV_EXTERN int uv_prepare_start(uv_prepare_t *prepare, uv_prepare_cb cb)
UV_HANDLE_FIELDS char * path
UV_HANDLE_FIELDS void * poll_ctx
UV_EXTERN int uv_fs_fchmod(uv_loop_t *loop, uv_fs_t *req, uv_file file, int mode, uv_fs_cb cb)
UV_EXTERN int uv_try_write(uv_stream_t *handle, const uv_buf_t bufs[], unsigned int nbufs)
void(* uv_shutdown_cb)(uv_shutdown_t *req, int status)
UV_EXTERN int uv_backend_timeout(const uv_loop_t *)
void(* uv_udp_send_cb)(uv_udp_send_t *req, int status)
UV_EXTERN int uv_if_indextoiid(unsigned int ifindex, char *buffer, size_t *size)
UV_EXTERN size_t uv_udp_get_send_queue_size(const uv_udp_t *handle)
UV_EXTERN int uv_check_stop(uv_check_t *check)
pthread_mutex_t uv_mutex_t
UV_REQ_FIELDS uv_stream_t * handle
UV_EXTERN int uv_set_process_title(const char *title)
UV_EXTERN int uv_tcp_init(uv_loop_t *, uv_tcp_t *handle)
UV_EXTERN int uv_fs_fdatasync(uv_loop_t *loop, uv_fs_t *req, uv_file file, uv_fs_cb cb)
void(* uv_exit_cb)(uv_process_t *, int64_t exit_status, int term_signal)
static void callback(void *arg, int status, int timeouts, struct hostent *host)
UV_EXTERN int uv_accept(uv_stream_t *server, uv_stream_t *client)
UV_EXTERN int uv_cond_timedwait(uv_cond_t *cond, uv_mutex_t *mutex, uint64_t timeout)
UV_EXTERN int uv_loop_init(uv_loop_t *loop)
static uv_prepare_t prepare
UV_EXTERN int uv_thread_create(uv_thread_t *tid, uv_thread_cb entry, void *arg)
UV_EXTERN unsigned int uv_version(void)
UV_EXTERN int uv_fs_poll_start(uv_fs_poll_t *handle, uv_fs_poll_cb poll_cb, const char *path, unsigned int interval)
UV_EXTERN void uv_sleep(unsigned int msec)
UV_EXTERN int uv_loop_alive(const uv_loop_t *loop)
static void recv_cb(uv_udp_t *handle, ssize_t nread, const uv_buf_t *buf, const struct sockaddr *addr, unsigned flags)
void(* uv_udp_recv_cb)(uv_udp_t *handle, ssize_t nread, const uv_buf_t *buf, const struct sockaddr *addr, unsigned flags)
UV_EXTERN void uv_mutex_unlock(uv_mutex_t *handle)
UV_PLATFORM_SEM_T uv_sem_t
void(* uv_after_work_cb)(uv_work_t *req, int status)
UV_EXTERN int uv_signal_stop(uv_signal_t *handle)
static void close_cb(uv_handle_t *handle)
static void poll_cb(uv_fs_t *req)
UV_REQ_FIELDS uv_write_cb cb
UV_EXTERN int uv_fs_close(uv_loop_t *loop, uv_fs_t *req, uv_file file, uv_fs_cb cb)
UV_EXTERN int uv_pipe_getsockname(const uv_pipe_t *handle, char *buffer, size_t *size)
UV_EXTERN void * uv_fs_get_ptr(const uv_fs_t *)
UV_EXTERN int uv_ip4_name(const struct sockaddr_in *src, char *dst, size_t size)
UV_EXTERN void uv_print_active_handles(uv_loop_t *loop, FILE *stream)
UV_EXTERN uv_os_fd_t uv_get_osfhandle(int fd)
uv_timespec_t st_birthtim
void(* uv_connect_cb)(uv_connect_t *req, int status)
UV_EXTERN void uv_sem_post(uv_sem_t *sem)
UV_EXTERN int uv_stream_set_blocking(uv_stream_t *handle, int blocking)
UV_EXTERN int uv_spawn(uv_loop_t *loop, uv_process_t *handle, const uv_process_options_t *options)
UV_EXTERN int uv_fs_scandir(uv_loop_t *loop, uv_fs_t *req, const char *path, int flags, uv_fs_cb cb)
UV_EXTERN uv_loop_t * uv_handle_get_loop(const uv_handle_t *handle)
UV_EXTERN int uv_exepath(char *buffer, size_t *size)
UV_EXTERN void uv_freeaddrinfo(struct addrinfo *ai)
UV_EXTERN void uv_cond_broadcast(uv_cond_t *cond)
UV_EXTERN int uv_fs_utime(uv_loop_t *loop, uv_fs_t *req, const char *path, double atime, double mtime, uv_fs_cb cb)
UV_EXTERN int uv_sem_init(uv_sem_t *sem, unsigned int value)
UV_EXTERN int uv_idle_init(uv_loop_t *, uv_idle_t *idle)
UV_EXTERN uv_fs_type uv_fs_get_type(const uv_fs_t *)
void(* uv_work_cb)(uv_work_t *req)
UV_EXTERN int uv_recv_buffer_size(uv_handle_t *handle, int *value)
UV_EXTERN void uv_timer_set_repeat(uv_timer_t *handle, uint64_t repeat)
UV_EXTERN int uv_chdir(const char *dir)
UV_EXTERN int uv_fs_chmod(uv_loop_t *loop, uv_fs_t *req, const char *path, int mode, uv_fs_cb cb)
UV_EXTERN int uv_fs_read(uv_loop_t *loop, uv_fs_t *req, uv_file file, const uv_buf_t bufs[], unsigned int nbufs, int64_t offset, uv_fs_cb cb)
UV_EXTERN int uv_udp_recv_start(uv_udp_t *handle, uv_alloc_cb alloc_cb, uv_udp_recv_cb recv_cb)
UV_EXTERN size_t uv_req_size(uv_req_type type)
UV_EXTERN int uv_udp_set_multicast_interface(uv_udp_t *handle, const char *interface_addr)
UV_EXTERN uint64_t uv_get_constrained_memory(void)
@ UV_PROCESS_WINDOWS_HIDE
UV_EXTERN int uv_tcp_init_ex(uv_loop_t *, uv_tcp_t *handle, unsigned int flags)
UV_EXTERN int uv_fs_ftruncate(uv_loop_t *loop, uv_fs_t *req, uv_file file, int64_t offset, uv_fs_cb cb)
static void async_cb(uv_async_t *handle)
UV_EXTERN int uv_rwlock_init(uv_rwlock_t *rwlock)
void(* uv_fs_poll_cb)(uv_fs_poll_t *handle, int status, const uv_stat_t *prev, const uv_stat_t *curr)
UV_EXTERN int uv_fs_fchown(uv_loop_t *loop, uv_fs_t *req, uv_file file, uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb)
UV_EXTERN int uv_async_init(uv_loop_t *, uv_async_t *async, uv_async_cb async_cb)
UV_EXTERN void uv_ref(uv_handle_t *)
uv_stream_t * send_handle
UV_HANDLE_FIELDS size_t send_queue_size
UV_EXTERN int uv_fileno(const uv_handle_t *handle, uv_os_fd_t *fd)
UV_EXTERN int uv_udp_bind(uv_udp_t *handle, const struct sockaddr *addr, unsigned int flags)
UV_EXTERN int uv_random(uv_loop_t *loop, uv_random_t *req, void *buf, size_t buflen, unsigned flags, uv_random_cb cb)
UV_EXTERN int uv_idle_start(uv_idle_t *idle, uv_idle_cb cb)
void(* uv_thread_cb)(void *arg)
#define UV_GETNAMEINFO_PRIVATE_FIELDS
UV_EXTERN int uv_tty_get_winsize(uv_tty_t *, int *width, int *height)
void(* uv_async_cb)(uv_async_t *handle)
UV_EXTERN void uv_tty_set_vterm_state(uv_tty_vtermstate_t state)
UV_EXTERN int uv_gettimeofday(uv_timeval64_t *tv)
void(* uv_timer_cb)(uv_timer_t *handle)
UV_EXTERN int uv_os_setpriority(uv_pid_t pid, int priority)
#define UV_WORK_PRIVATE_FIELDS
UV_EXTERN int uv_fs_opendir(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
UV_EXTERN void uv_os_free_environ(uv_env_item_t *envitems, int count)
void(* uv_write_cb)(uv_write_t *req, int status)
UV_EXTERN int uv_os_unsetenv(const char *name)
UV_EXTERN int uv_ip6_name(const struct sockaddr_in6 *src, char *dst, size_t size)
UV_EXTERN int uv_udp_set_source_membership(uv_udp_t *handle, const char *multicast_addr, const char *interface_addr, const char *source_addr, uv_membership membership)
UV_EXTERN uv_loop_t * uv_loop_new(void)
#define UV_REQ_TYPE_PRIVATE
struct sockaddr_in address4
UV_EXTERN void uv_sem_destroy(uv_sem_t *sem)
UV_EXTERN void uv_mutex_lock(uv_mutex_t *handle)
#define UV_TCP_PRIVATE_FIELDS
#define UV_SIGNAL_PRIVATE_FIELDS
UV_EXTERN int uv_dlsym(uv_lib_t *lib, const char *name, void **ptr)
UV_EXTERN int uv_udp_open(uv_udp_t *handle, uv_os_sock_t sock)
@ UV_PROCESS_WINDOWS_HIDE_GUI
#define UV_DIR_PRIVATE_FIELDS
UV_EXTERN int uv_fs_write(uv_loop_t *loop, uv_fs_t *req, uv_file file, const uv_buf_t bufs[], unsigned int nbufs, int64_t offset, uv_fs_cb cb)
static void walk_cb(uv_handle_t *handle, void *arg)
UV_EXTERN size_t uv_udp_get_send_queue_count(const uv_udp_t *handle)
union uv_loop_s::@402 active_reqs
UV_EXTERN uv_handle_type uv_pipe_pending_type(uv_pipe_t *handle)
struct sockaddr_in6 netmask6
void(* uv_connection_cb)(uv_stream_t *server, int status)
UV_EXTERN uint64_t uv_hrtime(void)
void(* uv_fs_event_cb)(uv_fs_event_t *handle, const char *filename, int events, int status)
UV_EXTERN void uv_key_set(uv_key_t *key, void *value)
UV_EXTERN int uv_inet_ntop(int af, const void *src, char *dst, size_t size)
UV_EXTERN int uv_poll_stop(uv_poll_t *handle)
#define UV_CONNECT_PRIVATE_FIELDS
UV_EXTERN int uv_replace_allocator(uv_malloc_func malloc_func, uv_realloc_func realloc_func, uv_calloc_func calloc_func, uv_free_func free_func)
UV_EXTERN int uv_fs_link(uv_loop_t *loop, uv_fs_t *req, const char *path, const char *new_path, uv_fs_cb cb)
static void getaddrinfo_cb(uv_getaddrinfo_t *handle, int status, struct addrinfo *res)
UV_EXTERN int uv_tty_init(uv_loop_t *, uv_tty_t *, uv_file fd, int readable)
UV_EXTERN int uv_tty_set_mode(uv_tty_t *, uv_tty_mode_t mode)
#define UV_LOOP_PRIVATE_FIELDS
UV_EXTERN int uv_fs_chown(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb)
UV_EXTERN void uv_loop_delete(uv_loop_t *)
UV_EXTERN int uv_getrusage(uv_rusage_t *rusage)
#define UV_UDP_PRIVATE_FIELDS
UV_HANDLE_FIELDS UV_STREAM_FIELDS int ipc
UV_EXTERN int uv_cond_init(uv_cond_t *cond)
UV_EXTERN int uv_fs_closedir(uv_loop_t *loop, uv_fs_t *req, uv_dir_t *dir, uv_fs_cb cb)
UV_EXTERN int uv_fs_rename(uv_loop_t *loop, uv_fs_t *req, const char *path, const char *new_path, uv_fs_cb cb)
UV_EXTERN uv_buf_t uv_buf_init(char *base, unsigned int len)
void *(* uv_malloc_func)(size_t size)
UV_EXTERN int uv_check_init(uv_loop_t *, uv_check_t *check)
static void check(upb_inttable *t)
UV_EXTERN int uv_tcp_nodelay(uv_tcp_t *handle, int enable)
UV_EXTERN void uv_stop(uv_loop_t *)
UV_EXTERN int uv_os_homedir(char *buffer, size_t *size)
UV_EXTERN void uv_handle_set_data(uv_handle_t *handle, void *data)
UV_EXTERN int uv_loop_configure(uv_loop_t *loop, uv_loop_option option,...)
UV_EXTERN int uv_fs_realpath(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
UV_EXTERN int uv_mutex_trylock(uv_mutex_t *handle)
UV_EXTERN void uv_rwlock_rdunlock(uv_rwlock_t *rwlock)
UV_EXTERN 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)
UV_EXTERN int uv_fs_event_start(uv_fs_event_t *handle, uv_fs_event_cb cb, const char *path, unsigned int flags)
UV_EXTERN void uv_cond_signal(uv_cond_t *cond)
UV_EXTERN uv_handle_type uv_handle_get_type(const uv_handle_t *handle)
UV_EXTERN void uv_fs_req_cleanup(uv_fs_t *req)
UV_REQ_FIELDS uv_udp_t * handle
UV_EXTERN int uv_mutex_init_recursive(uv_mutex_t *handle)
union uv_stdio_container_s::@399 data
UV_REQ_FIELDS uv_fs_type fs_type
UV_EXTERN size_t uv_handle_size(uv_handle_type type)
@ UV_PROCESS_WINDOWS_VERBATIM_ARGUMENTS
union uv_interface_address_s::@400 address
UV_EXTERN int uv_open_osfhandle(uv_os_fd_t os_fd)
UV_EXTERN int uv_timer_start(uv_timer_t *handle, uv_timer_cb cb, uint64_t timeout, uint64_t repeat)
static void after_work_cb(uv_work_t *req, int status)
const UV_EXTERN char * uv_dlerror(const uv_lib_t *lib)
UV_REQ_FIELDS uv_loop_t * loop
UV_EXTERN int uv_has_ref(const uv_handle_t *)
struct sockaddr_in netmask4
void(* uv_close_cb)(uv_handle_t *handle)
#define UV_POLL_PRIVATE_FIELDS
UV_EXTERN void uv_sem_wait(uv_sem_t *sem)
UV_EXTERN int uv_write2(uv_write_t *req, uv_stream_t *handle, const uv_buf_t bufs[], unsigned int nbufs, uv_stream_t *send_handle, uv_write_cb cb)
void(* uv_prepare_cb)(uv_prepare_t *handle)
UV_EXTERN int uv_udp_set_ttl(uv_udp_t *handle, int ttl)
UV_EXTERN int uv_timer_init(uv_loop_t *, uv_timer_t *handle)
UV_EXTERN int uv_udp_try_send(uv_udp_t *handle, const uv_buf_t bufs[], unsigned int nbufs, const struct sockaddr *addr)
UV_EXTERN int uv_is_writable(const uv_stream_t *handle)
UV_EXTERN int uv_udp_recv_stop(uv_udp_t *handle)
UV_EXTERN int uv_fs_event_init(uv_loop_t *loop, uv_fs_event_t *handle)
UV_EXTERN int uv_pipe_chmod(uv_pipe_t *handle, int flags)
__attribute__((deprecated("Please use GRPCProtoMethod."))) @interface ProtoMethod NSString * service
UV_EXTERN int uv_pipe_bind(uv_pipe_t *handle, const char *name)
UV_EXTERN int uv_key_create(uv_key_t *key)
@ UV_PROCESS_WINDOWS_HIDE_CONSOLE
UV_EXTERN int uv_cancel(uv_req_t *req)
UV_EXTERN int uv_process_kill(uv_process_t *, int signum)
UV_EXTERN int uv_fs_lchown(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb)
void(* uv_idle_cb)(uv_idle_t *handle)
UV_EXTERN uv_pid_t uv_os_getppid(void)
UV_EXTERN int uv_os_tmpdir(char *buffer, size_t *size)
struct uv_stdio_container_s uv_stdio_container_t
UV_EXTERN int uv_fs_lstat(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
#define UV_UDP_SEND_PRIVATE_FIELDS
UV_EXTERN int uv_read_stop(uv_stream_t *)
UV_EXTERN int uv_resident_set_memory(size_t *rss)
UV_EXTERN void * uv_handle_get_data(const uv_handle_t *handle)
UV_EXTERN void uv_loadavg(double avg[3])
UV_EXTERN int uv_barrier_wait(uv_barrier_t *barrier)
#define UV_SHUTDOWN_PRIVATE_FIELDS
UV_EXTERN int uv_tty_get_vterm_state(uv_tty_vtermstate_t *state)
static uv_rwlock_t rwlock
UV_EXTERN int uv_fs_poll_getpath(uv_fs_poll_t *handle, char *buffer, size_t *size)
UV_EXTERN int uv_udp_init_ex(uv_loop_t *, uv_udp_t *handle, unsigned int flags)
struct uv_process_options_s uv_process_options_t
const UV_EXTERN char * uv_err_name(int err)
UV_HANDLE_FIELDS uv_exit_cb exit_cb
UV_EXTERN int uv_rwlock_trywrlock(uv_rwlock_t *rwlock)
UV_EXTERN void uv_pipe_pending_instances(uv_pipe_t *handle, int count)
UV_EXTERN int uv_tty_reset_mode(void)
UV_EXTERN int uv_pipe_open(uv_pipe_t *, uv_file file)
UV_EXTERN int uv_fs_scandir_next(uv_fs_t *req, uv_dirent_t *ent)
UV_EXTERN int uv_get_process_title(char *buffer, size_t size)
UV_HANDLE_FIELDS uv_poll_cb poll_cb
#define UV_REQ_TYPE_MAP(XX)
UV_EXTERN int uv_fs_fstat(uv_loop_t *loop, uv_fs_t *req, uv_file file, uv_fs_cb cb)
OPENSSL_EXPORT pem_password_cb * cb
UV_EXTERN uv_pid_t uv_process_get_pid(const uv_process_t *)
struct sockaddr_in6 address6
UV_EXTERN int uv_signal_start(uv_signal_t *handle, uv_signal_cb signal_cb, int signum)
UV_EXTERN void uv_rwlock_rdlock(uv_rwlock_t *rwlock)
UV_EXTERN int uv_async_send(uv_async_t *async)
UV_EXTERN int uv_check_start(uv_check_t *check, uv_check_cb cb)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:49