Lines Matching defs:handle
38 static void close_cb(uv_handle_t* handle);
62 ASSERT_PTR_EQ(req->handle, (uv_stream_t*)&tcp_handle);
68 static void close_cb(uv_handle_t* handle) {
69 ASSERT_PTR_EQ(handle, (uv_handle_t*)&tcp_handle);
79 static void start_server(uv_loop_t* loop, uv_tcp_t* handle) {
85 r = uv_tcp_init(loop, handle);
88 r = uv_tcp_bind(handle, (const struct sockaddr*) &addr, 0);
91 r = uv_listen((uv_stream_t*)handle, 128, connection_cb);
94 uv_unref((uv_handle_t*)handle);
99 * invoked when the handle is closed.
111 /* We can't use the echo server, it doesn't handle ECONNRESET. */