Rizin
unix-like reverse engineering framework and cli tools
|
#include <assert.h>
#include "uv.h"
#include "internal.h"
#include "handle-inl.h"
#include "req-inl.h"
Go to the source code of this file.
Functions | |
int | uv_listen (uv_stream_t *stream, int backlog, uv_connection_cb cb) |
int | uv_accept (uv_stream_t *server, uv_stream_t *client) |
int | uv_read_start (uv_stream_t *handle, uv_alloc_cb alloc_cb, uv_read_cb read_cb) |
int | uv_read_stop (uv_stream_t *handle) |
int | uv_write (uv_write_t *req, uv_stream_t *handle, const uv_buf_t bufs[], unsigned int nbufs, uv_write_cb cb) |
int | uv_write2 (uv_write_t *req, uv_stream_t *handle, const uv_buf_t bufs[], unsigned int nbufs, uv_stream_t *send_handle, uv_write_cb cb) |
int | uv_try_write (uv_stream_t *stream, const uv_buf_t bufs[], unsigned int nbufs) |
int | uv_shutdown (uv_shutdown_t *req, uv_stream_t *handle, uv_shutdown_cb cb) |
int | uv_is_readable (const uv_stream_t *handle) |
int | uv_is_writable (const uv_stream_t *handle) |
int | uv_stream_set_blocking (uv_stream_t *handle, int blocking) |
int uv_accept | ( | uv_stream_t * | server, |
uv_stream_t * | client | ||
) |
Definition at line 49 of file stream.c.
References assert(), done, err, uv__stream_queued_fds_s::fds, NULL, uv__stream_queued_fds_s::offset, uv__close(), uv__free(), uv__io_start(), uv__stream_open(), UV_HANDLE_BOUND, UV_HANDLE_READABLE, UV_HANDLE_WRITABLE, uv_pipe_accept(), uv_tcp_accept(), uv_translate_sys_error(), and uv_udp_open().
Referenced by on_new_connection().
int uv_is_readable | ( | const uv_stream_t * | handle | ) |
int uv_is_writable | ( | const uv_stream_t * | handle | ) |
int uv_listen | ( | uv_stream_t * | stream, |
int | backlog, | ||
uv_connection_cb | cb | ||
) |
Definition at line 30 of file stream.c.
References assert(), cb, err, uv__handle_start, uv_pipe_listen(), uv_tcp_listen(), and uv_translate_sys_error().
Referenced by main().
int uv_read_start | ( | uv_stream_t * | handle, |
uv_alloc_cb | alloc_cb, | ||
uv_read_cb | read_cb | ||
) |
Definition at line 68 of file stream.c.
References assert(), err, handle, uv__handle_start, uv__io_start(), uv__stream_fd, uv__stream_osx_interrupt_select(), UV_HANDLE_CLOSING, UV_HANDLE_READABLE, UV_HANDLE_READING, uv_pipe_read_start(), uv_tcp_read_start(), uv_translate_sys_error(), and uv_tty_read_start().
Referenced by main(), on_connect(), and on_new_connection().
int uv_read_stop | ( | uv_stream_t * | handle | ) |
Definition at line 99 of file stream.c.
References DECREASE_ACTIVE_COUNT, err, handle, NULL, uv__handle_stop, uv__io_active(), uv__io_stop(), uv__pipe_read_stop(), uv__stream_osx_interrupt_select(), UV_HANDLE_READING, uv_translate_sys_error(), and uv_tty_read_stop().
Referenced by eof_timer_cb(), uv_pipe_read_eof(), and uv_pipe_read_error().
int uv_shutdown | ( | uv_shutdown_t * | req, |
uv_stream_t * | handle, | ||
uv_shutdown_cb | cb | ||
) |
Definition at line 198 of file stream.c.
References assert(), cb, handle, loop, REGISTER_HANDLE_REQ, req, uv__io_start(), uv__is_closing, uv__req_init, uv__stream_fd, uv__stream_osx_interrupt_select(), UV_HANDLE_SHUT, UV_HANDLE_SHUTTING, UV_HANDLE_WRITABLE, UV_REQ_INIT, and uv_want_endgame().
int uv_stream_set_blocking | ( | uv_stream_t * | handle, |
int | blocking | ||
) |
Definition at line 233 of file stream.c.
References handle, uv__nonblock, uv__stream_fd, and UV_HANDLE_BLOCKING_WRITES.
Definition at line 176 of file stream.c.
References assert(), bufs, NULL, QUEUE_REMOVE, r, req, uv__count_bufs(), uv__free(), uv__io_active(), uv__io_stop(), uv__req_unregister, uv__stream_osx_interrupt_select(), uv__tcp_try_write(), uv__tty_try_write(), uv__write_req_size(), UV_HANDLE_CLOSING, UV_HANDLE_WRITABLE, uv_try_write_cb(), and uv_write().
int uv_write | ( | uv_write_t * | req, |
uv_stream_t * | handle, | ||
const uv_buf_t | bufs[], | ||
unsigned int | nbufs, | ||
uv_write_cb | cb | ||
) |
Definition at line 119 of file stream.c.
References assert(), bufs, cb, err, handle, loop, NULL, req, uv__pipe_write(), UV_HANDLE_WRITABLE, uv_tcp_write(), uv_translate_sys_error(), uv_tty_write(), and uv_write2().
Referenced by echo_read(), main(), update(), and write_data().
int uv_write2 | ( | uv_write_t * | req, |
uv_stream_t * | handle, | ||
const uv_buf_t | bufs[], | ||
unsigned int | nbufs, | ||
uv_stream_t * | send_handle, | ||
uv_write_cb | cb | ||
) |
Definition at line 151 of file stream.c.
References ARRAY_SIZE, assert(), bufs, cb, err, handle, loop, memcpy(), NULL, QUEUE_INIT, QUEUE_INSERT_TAIL, req, uv__count_bufs(), uv__handle_fd(), uv__io_start(), uv__malloc(), uv__pipe_write(), uv__req_init, uv__stream_fd, uv__stream_osx_interrupt_select(), uv__write(), UV_HANDLE_BLOCKING_WRITES, UV_HANDLE_WRITABLE, uv_translate_sys_error(), and uv_write().
Referenced by on_new_connection().