Lines Matching refs:stream
8 :c:type:`uv_stream_t` is an abstract type, libuv provides 3 stream implementations
30 this type. When a stream is in non-blocking mode, write requests sent
35 .. c:type:: void (*uv_read_cb)(uv_stream_t* stream, ssize_t nread, const uv_buf_t* buf)
37 Callback called when data was read on a stream.
48 The callee is responsible for stopping/closing the stream when an error happens
50 from the stream again is undefined.
58 Callback called after data was written on a stream. `status` will be 0 in
73 Callback called when a stream server has received an incoming connection.
87 Pointer to the stream where this connection request is running.
91 Pointer to the stream where this shutdown request is running.
95 Pointer to the stream where this write request is running.
99 Pointer to the stream being sent using this write request.
109 Shutdown the outgoing (write) side of a duplex stream. It waits for pending
110 write requests to complete. The `handle` should refer to a initialized stream.
114 .. c:function:: int uv_listen(uv_stream_t* stream, int backlog, uv_connection_cb cb)
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
144 stream is closing. With older libuv versions, it returns `UV_EALREADY`
149 Stop reading data from the stream. The :c:type:`uv_read_cb` callback will
152 This function is idempotent and may be safely called on a stopped stream.
161 Write data to stream. Buffers are written in order. Example:
183 uv_write(&req1, stream, a, 2, cb);
184 uv_write(&req2, stream, b, 2, cb);
223 Returns 1 if the stream is readable, 0 otherwise.
227 Returns 1 if the stream is writable, 0 otherwise.
231 Enable or disable blocking mode for a stream.
248 the stream.
252 .. c:function:: size_t uv_stream_get_write_queue_size(const uv_stream_t* stream)
254 Returns `stream->write_queue_size`.