Searched refs:peer_handle (Results 1 – 4 of 4) sorted by relevance
/third_party/libuv/test/ |
D | test-tcp-unexpected-read.c | 29 static uv_tcp_t peer_handle; variable 46 uv_close((uv_handle_t*) &peer_handle, NULL); in timer_cb() 69 ASSERT(req->handle == (uv_stream_t*) &peer_handle); in write_cb() 80 ASSERT(0 == uv_accept(handle, (uv_stream_t*) &peer_handle)); in connection_cb() 81 ASSERT(0 == uv_read_start((uv_stream_t*) &peer_handle, alloc_cb, read_cb)); in connection_cb() 82 ASSERT(0 == uv_write(&write_req, (uv_stream_t*) &peer_handle, in connection_cb() 100 ASSERT(0 == uv_tcp_init(loop, &peer_handle)); in TEST_IMPL()
|
D | test-tcp-oob.c | 33 static uv_tcp_t peer_handle; variable 53 uv_close((uv_handle_t*) &peer_handle, NULL); in idle_cb() 88 ASSERT(0 == uv_accept(handle, (uv_stream_t*) &peer_handle)); in connection_cb() 89 ASSERT(0 == uv_read_start((uv_stream_t*) &peer_handle, alloc_cb, read_cb)); in connection_cb() 122 ASSERT(0 == uv_tcp_init(loop, &peer_handle)); in TEST_IMPL()
|
D | test-poll-oob.c | 35 static uv_tcp_t peer_handle; variable 64 uv_close((uv_handle_t*) &peer_handle, NULL); in idle_cb() 139 ASSERT(0 == uv_accept(handle, (uv_stream_t*) &peer_handle)); in connection_cb() 140 ASSERT(0 == uv_fileno((uv_handle_t*) &peer_handle, &server_fd)); in connection_cb() 173 ASSERT(0 == uv_tcp_init(loop, &peer_handle)); in TEST_IMPL()
|
D | benchmark-multi-accept.c | 55 handle_storage_t peer_handle; member 120 ASSERT(0 == uv_tcp_init(loop, (uv_tcp_t*) &pc->peer_handle)); in ipc_connection_cb() 122 ASSERT(0 == uv_pipe_init(loop, (uv_pipe_t*) &pc->peer_handle, 1)); in ipc_connection_cb() 126 ASSERT(0 == uv_accept(ipc_pipe, (uv_stream_t*) &pc->peer_handle)); in ipc_connection_cb() 128 (uv_stream_t*) &pc->peer_handle, in ipc_connection_cb() 142 uv_close((uv_handle_t*) &ctx->peer_handle, ipc_close_cb); in ipc_write_cb() 148 ctx = container_of(handle, struct ipc_peer_ctx, peer_handle); in ipc_close_cb()
|