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.
16 .. c:type:: uv_req_t
20 .. c:type:: uv_any_req
32 .. c:member:: uv_req_type uv_req_t.type
34 Indicated the type of request. Readonly.
71 Only cancellation of :c:type:`uv_fs_t`, :c:type:`uv_getaddrinfo_t`,
72 :c:type:`uv_getnameinfo_t`, :c:type:`uv_random_t` and :c:type:`uv_work_t`
83 * A :c:type:`uv_work_t`, :c:type:`uv_getaddrinfo_t`,
84 :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
97 The :c:type:`uv_handle_type`, indicating the type of the underlying handle. Readonly.
[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 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.
101 :c:type:`uv_tty_mode_t` value.
118 .. seealso:: The :c:type:`uv_stream_t` API functions also apply.
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 Dfs_event.rst4 :c:type:`uv_fs_event_t` --- FS Event handle
35 .. c:type:: uv_fs_event_t
37 FS Event handle type.
39 .. c:type:: void (*uv_fs_event_cb)(uv_fs_event_t* handle, const char* filename, int events, int sta…
48 The `events` parameter is an ORed mask of :c:type:`uv_fs_event` elements.
50 .. c:type:: uv_fs_event
52 Event types that :c:type:`uv_fs_event_t` handles monitor.
61 .. c:type:: uv_fs_event_flags
99 .. seealso:: The :c:type:`uv_handle_t` members also apply.
112 `path` for changes. `flags` can be an ORed mask of :c:type:`uv_fs_event_flags`.
[all …]
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 Dprocess.rst4 :c:type:`uv_process_t` --- Process handle
14 .. c:type:: uv_process_t
16 Process handle type.
18 .. c:type:: uv_process_options_t
39 Type definition for callback passed in :c:type:`uv_process_options_t` which
43 .. c:type:: uv_process_flags
45 Flags to be set on the flags field of :c:type:`uv_process_options_t`.
98 .. c:type:: uv_stdio_container_t
178 The :c:type:`uv_handle_t` members also apply.
206 :c:type:`uv_process_flags`.
[all …]
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.h124 struct type *name##_SPLAY_INSERT(struct name *, struct type *); \
125 struct type *name##_SPLAY_REMOVE(struct name *, struct type *); \
384 RB_PROTOTYPE_INTERNAL(name, type, field, cmp,)
389 attr void name##_RB_REMOVE_COLOR(struct name *, struct type *, struct type *);\
390 attr struct type *name##_RB_REMOVE(struct name *, struct type *); \
391 attr struct type *name##_RB_INSERT(struct name *, struct type *); \
392 attr struct type *name##_RB_FIND(struct name *, struct type *); \
393 attr struct type *name##_RB_NFIND(struct name *, struct type *); \
394 attr struct type *name##_RB_NEXT(struct type *); \
395 attr struct type *name##_RB_PREV(struct type *); \
[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()
/libuv/test/
H A Dtask.h74 #define container_of(ptr, type, member) \ argument
75 ((type *) ((char *) (ptr) - offsetof(type, member)))
110 #define ASSERT_BASE(a, operator, b, type, conv) \ argument
112 volatile type eval_a = (type) (a); \
113 volatile type eval_b = (type) (b); \
130 #define ASSERT_BASE_STR(expr, a, operator, b, type, conv) \ argument
141 (type)a, \
143 (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()
360 int type; in uv_guess_handle() local
416 len = sizeof(type); in uv_guess_handle()
417 if (getsockopt(file, SOL_SOCKET, SO_TYPE, &type, &len)) in uv_guess_handle()
420 if (type == SOCK_DGRAM) in uv_guess_handle()
424 if (type == SOCK_STREAM) { in uv_guess_handle()

Completed in 62 milliseconds

1234