Lines Matching refs:c
4 :c:type:`uv_handle_t` --- Base handle
19 .. c:type:: uv_handle_t
23 .. c:enum:: uv_handle_type
51 .. c:type:: uv_any_handle
55 .. c:type:: void (*uv_alloc_cb)(uv_handle_t* handle, size_t suggested_size, uv_buf_t* buf)
57 Type definition for callback passed to :c:func:`uv_read_start` and
58 :c:func:`uv_udp_recv_start`. The user must allocate memory and fill the supplied
59 :c:type:`uv_buf_t` structure. If NULL is assigned as the buffer's base or 0 as its length,
60 a ``UV_ENOBUFS`` error will be triggered in the :c:type:`uv_udp_recv_cb` or the
61 :c:type:`uv_read_cb` callback.
64 :c:type:`uv_udp_recv_cb` or the :c:type:`uv_read_cb` callback.
83 .. c:type:: void (*uv_close_cb)(uv_handle_t* handle)
85 Type definition for callback passed to :c:func:`uv_close`.
91 .. c:member:: uv_loop_t* uv_handle_t.loop
93 Pointer to the :c:type:`uv_loop_t` the handle is running on. Readonly.
95 .. c:member:: uv_handle_type uv_handle_t.type
97 The :c:enum:`uv_handle_type`, indicating the type of the underlying handle. Readonly.
99 .. c:member:: void* uv_handle_t.data
107 .. c:macro:: UV_HANDLE_TYPE_MAP(iter_macro)
115 .. c:function:: int uv_is_active(const uv_handle_t* handle)
134 .. c:function:: int uv_is_closing(const uv_handle_t* handle)
142 .. c:function:: void uv_close(uv_handle_t* handle, uv_close_cb close_cb)
159 .. c:function:: void uv_ref(uv_handle_t* handle)
166 .. c:function:: void uv_unref(uv_handle_t* handle)
173 .. c:function:: int uv_has_ref(const uv_handle_t* handle)
179 .. c:function:: size_t uv_handle_size(uv_handle_type type)
188 The following API functions take a :c:type:`uv_handle_t` argument but they work
191 .. c:function:: int uv_send_buffer_size(uv_handle_t* handle, int* value)
208 .. c:function:: int uv_recv_buffer_size(uv_handle_t* handle, int* value)
225 .. c:function:: int uv_fileno(const uv_handle_t* handle, uv_os_fd_t* fd)
239 .. c:function:: uv_loop_t* uv_handle_get_loop(const uv_handle_t* handle)
245 .. c:function:: void* uv_handle_get_data(const uv_handle_t* handle)
251 .. c:function:: void uv_handle_set_data(uv_handle_t* handle, void* data)
257 .. c:function:: uv_handle_type uv_handle_get_type(const uv_handle_t* handle)
263 .. c:function:: const char* uv_handle_type_name(uv_handle_type type)
266 e.g. `"pipe"` (as in :c:type:`uv_pipe_t`) for `UV_NAMED_PIPE`.
279 by unreferencing handles which are active, for example by calling :c:func:`uv_unref`
280 after calling :c:func:`uv_timer_start`.
285 All handles are referenced when active by default, see :c:func:`uv_is_active`