Lines Matching refs:stream
30 int uv_listen(uv_stream_t* stream, int backlog, uv_connection_cb cb) { in uv_listen() argument
32 if (uv__is_closing(stream)) { in uv_listen()
36 switch (stream->type) { in uv_listen()
38 err = uv__tcp_listen((uv_tcp_t*)stream, backlog, cb); in uv_listen()
41 err = uv__pipe_listen((uv_pipe_t*)stream, backlog, cb); in uv_listen()
171 int uv_try_write(uv_stream_t* stream, in uv_try_write() argument
174 if (stream->flags & UV_HANDLE_CLOSING) in uv_try_write()
176 if (!(stream->flags & UV_HANDLE_WRITABLE)) in uv_try_write()
179 switch (stream->type) { in uv_try_write()
181 return uv__tcp_try_write((uv_tcp_t*) stream, bufs, nbufs); in uv_try_write()
183 return uv__tty_try_write((uv_tty_t*) stream, bufs, nbufs); in uv_try_write()
193 int uv_try_write2(uv_stream_t* stream, in uv_try_write2() argument
199 return uv_try_write(stream, bufs, nbufs); in uv_try_write2()
217 handle->stream.conn.shutdown_req = req; in uv_shutdown()
221 if (handle->stream.conn.write_reqs_pending == 0) { in uv_shutdown()