Lines Matching refs:c
4 :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
19 .. c:type:: uv_connect_t
23 .. c:type:: uv_shutdown_t
27 .. c:type:: uv_write_t
35 .. c:type:: void (*uv_read_cb)(uv_stream_t* stream, ssize_t nread, const uv_buf_t* buf)
49 by calling :c:func:`uv_read_stop` or :c:func:`uv_close`. Trying to read
56 .. c:type:: void (*uv_write_cb)(uv_write_t* req, int status)
61 .. c:type:: void (*uv_connect_cb)(uv_connect_t* req, int status)
63 Callback called after a connection started by :c:func:`uv_connect` is done.
66 .. c:type:: void (*uv_shutdown_cb)(uv_shutdown_t* req, int status)
71 .. c:type:: void (*uv_connection_cb)(uv_stream_t* server, int status)
74 The user can accept the connection by calling :c:func:`uv_accept`.
81 .. c:member:: size_t uv_stream_t.write_queue_size
85 .. c:member:: uv_stream_t* uv_connect_t.handle
89 .. c:member:: uv_stream_t* uv_shutdown_t.handle
93 .. c:member:: uv_stream_t* uv_write_t.handle
97 .. c:member:: uv_stream_t* uv_write_t.send_handle
101 .. seealso:: The :c:type:`uv_handle_t` members also apply.
107 .. c:function:: int uv_shutdown(uv_shutdown_t* req, uv_stream_t* handle, uv_shutdown_cb cb)
114 .. c:function:: int uv_listen(uv_stream_t* stream, int backlog, uv_connection_cb cb)
118 incoming connection is received the :c:type:`uv_connection_cb` callback is
121 .. c:function:: int uv_accept(uv_stream_t* server, uv_stream_t* client)
123 This call is used in conjunction with :c:func:`uv_listen` to accept incoming
124 connections. Call this function after receiving a :c:type:`uv_connection_cb`
128 When the :c:type:`uv_connection_cb` callback is called it is guaranteed that
131 per :c:type:`uv_connection_cb` call.
136 .. c:function:: int uv_read_start(uv_stream_t* stream, uv_alloc_cb alloc_cb, uv_read_cb read_cb)
138 Read data from an incoming stream. The :c:type:`uv_read_cb` callback will
140 :c:func:`uv_read_stop` is called.
142 .. versionchanged:: 1.38.0 :c:func:`uv_read_start()` now consistently
147 .. c:function:: int uv_read_stop(uv_stream_t*)
149 Stop reading data from the stream. The :c:type:`uv_read_cb` callback will
159 .. c:function:: int uv_write(uv_write_t* req, uv_stream_t* handle, const uv_buf_t bufs[], unsigned …
188 This also holds for :c:func:`uv_write2`.
190 .. c:function:: int uv_write2(uv_write_t* req, uv_stream_t* handle, const uv_buf_t bufs[], unsigned…
200 .. c:function:: int uv_try_write(uv_stream_t* handle, const uv_buf_t bufs[], unsigned int nbufs)
202 Same as :c:func:`uv_write`, but won't queue a write request if it can't be
211 .. c:function:: int uv_try_write2(uv_stream_t* handle, const uv_buf_t bufs[], unsigned int nbufs, u…
213 Same as :c:func:`uv_try_write` and extended write function for sending
214 handles over a pipe like c:func:`uv_write2`.
221 .. c:function:: int uv_is_readable(const uv_stream_t* handle)
225 .. c:function:: int uv_is_writable(const uv_stream_t* handle)
229 .. c:function:: int uv_stream_set_blocking(uv_stream_t* handle, int blocking)
242 Currently only works on Windows for :c:type:`uv_pipe_t` handles.
243 On UNIX platforms, all :c:type:`uv_stream_t` handles are supported.
252 .. c:function:: size_t uv_stream_get_write_queue_size(const uv_stream_t* stream)
258 .. seealso:: The :c:type:`uv_handle_t` API functions also apply.