Rizin
unix-like reverse engineering framework and cli tools
stream-inl.h File Reference
#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

static INLINE void uv_stream_init (uv_loop_t *loop, uv_stream_t *handle, uv_handle_type type)
 
static INLINE void uv_connection_init (uv_stream_t *handle)
 

Function Documentation

◆ uv_connection_init()

static INLINE void uv_connection_init ( uv_stream_t handle)
static

Definition at line 49 of file stream-inl.h.

49  {
50  handle->flags |= UV_HANDLE_CONNECTION;
51 }
static mcore_handle handle
Definition: asm_mcore.c:8
@ UV_HANDLE_CONNECTION
Definition: uv-common.h:83

References handle, and UV_HANDLE_CONNECTION.

Referenced by uv__tcp_xfer_import(), uv_pipe_connection_init(), uv_process_tcp_connect_req(), uv_tcp_accept(), uv_tcp_open(), and uv_tty_init().

◆ uv_stream_init()

static INLINE void uv_stream_init ( uv_loop_t loop,
uv_stream_t handle,
uv_handle_type  type 
)
static

Definition at line 33 of file stream-inl.h.

35  {
37  handle->write_queue_size = 0;
38  handle->activecnt = 0;
39  handle->stream.conn.shutdown_req = NULL;
40  handle->stream.conn.write_reqs_pending = 0;
41 
42  UV_REQ_INIT(&handle->read_req, UV_READ);
43  handle->read_req.event_handle = NULL;
44  handle->read_req.wait_handle = INVALID_HANDLE_VALUE;
45  handle->read_req.data = handle;
46 }
#define NULL
Definition: cris-opc.c:27
#define INVALID_HANDLE_VALUE
Definition: iowin32.c:21
int type
Definition: mipsasm.c:17
uv_loop_t * loop
Definition: main.c:7
#define UV_REQ_INIT(req, typ)
Definition: uv-common.h:322
#define uv__handle_init(loop_, h, type_)
Definition: uv-common.h:301

References handle, INVALID_HANDLE_VALUE, loop, NULL, type, uv__handle_init, and UV_REQ_INIT.

Referenced by uv_pipe_init(), uv_tcp_init_ex(), and uv_tty_init().