Lines Matching refs:req
28 uv_write_t req; member
42 static void after_write(uv_write_t* req, int status);
49 static void after_write(uv_write_t* req, int status) { in after_write() argument
53 wr = (write_req_t*) req; in after_write()
67 static void after_shutdown(uv_shutdown_t* req, int status) { in after_shutdown() argument
69 uv_close((uv_handle_t*) req->handle, on_close); in after_shutdown()
70 free(req); in after_shutdown()
74 static void on_shutdown(uv_shutdown_t* req, int status) { in on_shutdown() argument
76 free(req); in on_shutdown()
139 if (uv_write(&wr->req, handle, &wr->buf, 1, after_write)) { in after_read()
214 uv_udp_send_t* req = send_freelist; in send_alloc() local
215 if (req != NULL) in send_alloc()
216 send_freelist = req->data; in send_alloc()
218 req = malloc(sizeof(*req)); in send_alloc()
219 return req; in send_alloc()
222 static void on_send(uv_udp_send_t* req, int status) { in on_send() argument
223 ASSERT_NOT_NULL(req); in on_send()
225 req->data = send_freelist; in on_send()
226 send_freelist = req; in on_send()
235 uv_udp_send_t* req; in on_recv() local
245 req = send_alloc(); in on_recv()
246 ASSERT_NOT_NULL(req); in on_recv()
248 ASSERT_LE(0, uv_udp_send(req, handle, &sndbuf, 1, addr, on_send)); in on_recv()
355 uv_fs_t req; in pipe_echo_start() local
356 uv_fs_unlink(NULL, &req, pipeName, NULL); in pipe_echo_start()
357 uv_fs_req_cleanup(&req); in pipe_echo_start()