Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 89) sorted by relevance

1234

/libuv/docs/src/
H A Drequest.rst4 :c:type:`uv_req_t` --- Base request
7 `uv_req_t` is the base type for all libuv request types.
10 All API functions defined here work with any request type.
16 .. c:type:: uv_req_t
20 .. c:type:: uv_any_req
52 .. c:member:: uv_req_type uv_req_t.type
75 Only cancellation of :c:type:`uv_fs_t`, :c:type:`uv_getaddrinfo_t`,
76 :c:type:`uv_getnameinfo_t`, :c:type:`uv_random_t` and :c:type:`uv_work_t`
87 * A :c:type:`uv_work_t`, :c:type:`uv_getaddrinfo_t`,
88 :c:type:`uv_getnameinfo_t` or :c:type:`uv_random_t` request has its
[all …]
H A Dstream.rst4 :c:type:`uv_stream_t` --- Stream handle
8 :c:type:`uv_stream_t` is an abstract type, libuv provides 3 stream implementations
9 in the form of :c:type:`uv_tcp_t`, :c:type:`uv_pipe_t` and :c:type:`uv_tty_t`.
15 .. c:type:: uv_stream_t
17 Stream handle type.
19 .. c:type:: uv_connect_t
21 Connect request type.
23 .. c:type:: uv_shutdown_t
25 Shutdown request type.
27 .. c:type:: uv_write_t
[all …]
H A Dhandle.rst4 :c:type:`uv_handle_t` --- Base handle
7 `uv_handle_t` is the base type for all libuv handle types.
10 All API functions defined here work with any handle type.
19 .. c:type:: uv_handle_t
21 The base libuv handle type.
51 .. c:type:: uv_any_handle
61 :c:type:`uv_read_cb` callback.
64 :c:type:`uv_udp_recv_cb` or the :c:type:`uv_read_cb` callback.
95 .. c:member:: uv_handle_type uv_handle_t.type
118 "active" means depends on the type of handle:
[all …]
H A Didle.rst4 :c:type:`uv_idle_t` --- Idle handle
8 before the :c:type:`uv_prepare_t` handles.
22 .. c:type:: uv_idle_t
24 Idle handle type.
26 .. c:type:: void (*uv_idle_cb)(uv_idle_t* handle)
36 .. seealso:: The :c:type:`uv_handle_t` members also apply.
62 .. seealso:: The :c:type:`uv_handle_t` API functions also apply.
H A Dprepare.rst4 :c:type:`uv_prepare_t` --- Prepare handle
14 .. c:type:: uv_prepare_t
16 Prepare handle type.
18 .. c:type:: void (*uv_prepare_cb)(uv_prepare_t* handle)
28 .. seealso:: The :c:type:`uv_handle_t` members also apply.
54 .. seealso:: The :c:type:`uv_handle_t` API functions also apply.
H A Dcheck.rst4 :c:type:`uv_check_t` --- Check handle
14 .. c:type:: uv_check_t
16 Check handle type.
18 .. c:type:: void (*uv_check_cb)(uv_check_t* handle)
28 .. seealso:: The :c:type:`uv_handle_t` members also apply.
54 .. seealso:: The :c:type:`uv_handle_t` API functions also apply.
H A Dthreading.rst14 .. c:type:: uv_thread_t
16 Thread data type.
23 .. c:type:: uv_key_t
27 .. c:type:: uv_once_t
31 .. c:type:: uv_mutex_t
33 Mutex data type.
35 .. c:type:: uv_rwlock_t
39 .. c:type:: uv_sem_t
41 Semaphore data type.
43 .. c:type:: uv_cond_t
[all …]
H A Dfs_poll.rst4 :c:type:`uv_fs_poll_t` --- FS Poll handle
8 :c:type:`uv_fs_event_t`, fs poll handles use `stat` to detect when a file has
15 .. c:type:: uv_fs_poll_t
17 FS Poll handle type.
19 .. c:type:: void (*uv_fs_poll_cb)(uv_fs_poll_t* handle, int status, const uv_stat_t* prev, const uv…
30 :c:type:`uv_stat_t` structs. They are valid for the duration of the
39 .. seealso:: The :c:type:`uv_handle_t` members also apply.
77 .. seealso:: The :c:type:`uv_handle_t` API functions also apply.
H A Ddns.rst13 .. c:type:: uv_getaddrinfo_t
15 `getaddrinfo` request type.
17 .. c:type:: void (*uv_getaddrinfo_cb)(uv_getaddrinfo_t* req, int status, struct addrinfo* res)
23 .. c:type:: uv_getnameinfo_t
25 `getnameinfo` request type.
27 .. c:type:: void (*uv_getnameinfo_cb)(uv_getnameinfo_t* req, int status, const char* hostname, cons…
66 .. seealso:: The :c:type:`uv_req_t` members also apply.
78 `hints` is a pointer to a struct addrinfo with additional address type
108 .. seealso:: The :c:type:`uv_req_t` API functions also apply.
H A Dasync.rst4 :c:type:`uv_async_t` --- Async handle
14 .. c:type:: uv_async_t
16 Async handle type.
18 .. c:type:: void (*uv_async_cb)(uv_async_t* handle)
28 .. seealso:: The :c:type:`uv_handle_t` members also apply.
65 The :c:type:`uv_handle_t` API functions also apply.
H A Dtty.rst4 :c:type:`uv_tty_t` --- TTY handle
9 :c:type:`uv_tty_t` is a 'subclass' of :c:type:`uv_stream_t`.
15 .. c:type:: uv_tty_t
17 TTY handle type.
23 TTY mode type:
38 Console virtual terminal mode type:
61 .. seealso:: The :c:type:`uv_stream_t` members also apply.
118 .. seealso:: The :c:type:`uv_stream_t` API functions also apply.
H A Dsignal.rst4 :c:type:`uv_signal_t` --- Signal handle
27 For a writable :c:type:`uv_tty_t` handle libuv will only detect size changes
28 when the cursor is moved. When a readable :c:type:`uv_tty_t` handle is used,
60 .. c:type:: uv_signal_t
62 Signal handle type.
64 .. c:type:: void (*uv_signal_cb)(uv_signal_t* handle, int signum)
76 .. seealso:: The :c:type:`uv_handle_t` members also apply.
101 .. seealso:: The :c:type:`uv_handle_t` API functions also apply.
H A Dmetrics.rst14 .. c:type:: uv_metrics_t
17 these metrics in a :c:type:`uv_prepare_cb` in order to make sure there are
57 provider starting from when the :c:type:`uv_loop_t` was configured to
62 time until calling :c:type:`uv_loop_configure` with
63 :c:type:`UV_METRICS_IDLE_TIME`.
H A Dthreadpool.rst34 .. c:type:: uv_work_t
36 Work request type.
38 .. c:type:: void (*uv_work_cb)(uv_work_t* req)
43 .. c:type:: void (*uv_after_work_cb)(uv_work_t* req, int status)
58 .. seealso:: The :c:type:`uv_req_t` members also apply.
72 .. seealso:: The :c:type:`uv_req_t` API functions also apply.
H A Dtimer.rst4 :c:type:`uv_timer_t` --- Timer handle
13 .. c:type:: uv_timer_t
15 Timer handle type.
17 .. c:type:: void (*uv_timer_cb)(uv_timer_t* handle)
27 .. seealso:: The :c:type:`uv_handle_t` members also apply.
88 .. seealso:: The :c:type:`uv_handle_t` API functions also apply.
/libuv/include/uv/
H A Dtree.h137 RB_PROTOTYPE_INTERNAL(name, type, field, cmp,)
139 RB_PROTOTYPE_INTERNAL(name, type, field, cmp, UV__UNUSED static)
142 attr void name##_RB_REMOVE_COLOR(struct name *, struct type *, struct type *);\
143 attr struct type *name##_RB_REMOVE(struct name *, struct type *); \
144 attr struct type *name##_RB_INSERT(struct name *, struct type *); \
145 attr struct type *name##_RB_FIND(struct name *, struct type *); \
146 attr struct type *name##_RB_NFIND(struct name *, struct type *); \
147 attr struct type *name##_RB_NEXT(struct type *); \
148 attr struct type *name##_RB_PREV(struct type *); \
156 RB_GENERATE_INTERNAL(name, type, field, cmp,)
[all …]
/libuv/src/
H A Duv-common.c167 switch (type) { in uv_handle_size()
175 switch(type) { in uv_req_size()
329 if (handle->type != UV_TCP) in uv_tcp_bind()
555 const char* type; in uv__print_handles() local
571 switch (h->type) { in uv__print_handles()
583 type, in uv__print_handles()
749 uv_dirent_type_t type; in uv__fs_get_dirent_type() local
754 type = UV_DIRENT_DIR; in uv__fs_get_dirent_type()
757 type = UV_DIRENT_FILE; in uv__fs_get_dirent_type()
778 type = UV_DIRENT_UNKNOWN; in uv__fs_get_dirent_type()
[all …]
H A Duv-data-getter-setters.c24 const char* uv_handle_type_name(uv_handle_type type) { in uv_handle_type_name() argument
25 switch (type) { in uv_handle_type_name()
37 return handle->type; in uv_handle_get_type()
52 const char* uv_req_type_name(uv_req_type type) { in uv_req_type_name() argument
53 switch (type) { in uv_req_type_name()
66 return req->type; in uv_req_get_type()
/libuv/src/win/
H A Dstream.c36 switch (stream->type) { in uv_listen()
55 switch (server->type) { in uv_accept()
76 switch (handle->type) { in uv__read_start()
101 if (handle->type == UV_TTY) { in uv_read_stop()
103 } else if (handle->type == UV_NAMED_PIPE) { in uv_read_stop()
127 switch (handle->type) { in uv_write()
159 if (handle->type != UV_NAMED_PIPE || !((uv_pipe_t*) handle)->ipc) { in uv_write2()
179 switch (stream->type) { in uv_try_write()
222 if (handle->type == UV_NAMED_PIPE) in uv_shutdown()
243 if (handle->type != UV_NAMED_PIPE) in uv_stream_set_blocking()
H A Dasync.c69 if (handle->type != UV_ASYNC) { in uv_async_send()
88 assert(handle->type == UV_ASYNC); in uv__process_async_wakeup_req()
89 assert(req->type == UV_WAKEUP); in uv__process_async_wakeup_req()
/libuv/test/
H A Dtask.h78 #define container_of(ptr, type, member) \ argument
79 ((type *) ((char *) (ptr) - offsetof(type, member)))
114 #define ASSERT_BASE(a, operator, b, type, conv) \ argument
116 volatile type eval_a = (type) (a); \
117 volatile type eval_b = (type) (b); \
134 #define ASSERT_BASE_STR(expr, a, operator, b, type, conv) \ argument
145 (type)a, \
147 (type)b); \
H A Dbenchmark-pump.c74 static stream_type type; variable
106 type == TCP ? "tcp" : "pipe", in show_stats()
112 if (type == TCP) in show_stats()
134 type == TCP ? "tcp" : "pipe", in read_show_stats()
235 if (type == TCP) in connect_cb()
252 if (type == TCP) { in maybe_connect_some()
284 if (type == TCP) { in connection_cb()
379 type = TCP; in HELPER_IMPL()
402 type = PIPE; in HELPER_IMPL()
426 type = TCP; in tcp_pump()
[all …]
H A Dbenchmark-multi-accept.c119 if (ipc_pipe->type == UV_TCP) in ipc_connection_cb()
121 else if (ipc_pipe->type == UV_NAMED_PIPE) in ipc_connection_cb()
178 uv_handle_type type; in ipc_read_cb() local
186 type = uv_pipe_pending_type(ipc_pipe); in ipc_read_cb()
187 if (type == UV_TCP) in ipc_read_cb()
189 else if (type == UV_NAMED_PIPE) in ipc_read_cb()
203 static void send_listen_handles(uv_handle_type type, in send_listen_handles() argument
213 if (type == UV_TCP) { in send_listen_handles()
300 if (server_handle->type == UV_TCP) in sv_connection_cb()
302 else if (server_handle->type == UV_NAMED_PIPE) in sv_connection_cb()
/libuv/src/unix/
H A Dtty.c137 uv_handle_type type; in uv_tty_init() local
150 type = uv_guess_handle(fd); in uv_tty_init()
151 if (type == UV_FILE || type == UV_UNKNOWN_HANDLE) in uv_tty_init()
176 if (type == UV_TTY) { in uv_tty_init()
391 int type; in uv_guess_handle() local
447 len = sizeof(type); in uv_guess_handle()
448 if (getsockopt(file, SOL_SOCKET, SO_TYPE, &type, &len)) in uv_guess_handle()
451 if (type == SOCK_DGRAM) in uv_guess_handle()
455 if (type == SOCK_STREAM) { in uv_guess_handle()
H A Dstream.c414 if (stream->type == UV_TCP) { in uv__stream_open()
544 switch (client->type) { in uv_accept()
606 switch (stream->type) { in uv_listen()
741 switch (handle->type) { in uv__handle_fd()
1161 assert(stream->type == UV_TCP || in uv_shutdown()
1162 stream->type == UV_TTY || in uv_shutdown()
1194 assert(stream->type == UV_TCP || in uv__stream_io()
1196 stream->type == UV_TTY); in uv__stream_io()
1251 assert(stream->type == UV_TCP || stream->type == UV_NAMED_PIPE); in uv__stream_connect()
1442 assert(stream->type == UV_TCP || stream->type == UV_NAMED_PIPE || in uv__read_start()
[all …]

Completed in 47 milliseconds

1234