Lines Matching refs:req
32 uv_write_t req; member
47 static void connect_cb(uv_connect_t* req, int status);
48 static void write_cb(uv_write_t* req, int status);
49 static void shutdown_cb(uv_shutdown_t* req, int status);
53 static void connect_cb(uv_connect_t* req, int status) { in connect_cb() argument
58 ASSERT_PTR_EQ(req->handle, (uv_stream_t*)&tcp_client); in connect_cb()
62 r = uv_write(&w->req, req->handle, &w->buf, 1, write_cb); in connect_cb()
66 r = uv_shutdown(&shutdown_req, req->handle, shutdown_cb); in connect_cb()
73 static void write_cb(uv_write_t* req, int status) { in write_cb() argument
74 ASSERT_NOT_NULL(req); in write_cb()
80 static void shutdown_cb(uv_shutdown_t* req, int status) { in shutdown_cb() argument
81 ASSERT_PTR_EQ(req->handle, (uv_stream_t*)&tcp_client); in shutdown_cb()
82 ASSERT_OK(req->handle->write_queue_size); in shutdown_cb()
84 uv_close((uv_handle_t*)req->handle, close_cb); in shutdown_cb()