Lines Matching defs:handle
36 static void on_client_alloc(uv_handle_t* handle,
42 static void on_client_timeout(uv_timer_t* handle);
44 static void on_close(uv_handle_t* handle);
58 static void on_client_alloc(uv_handle_t* handle,
74 static void on_client_timeout(uv_timer_t* handle) {
75 ASSERT_PTR_EQ(handle, &timer);
83 static void on_connection_alloc(uv_handle_t* handle,
114 static void on_close(uv_handle_t* handle) {
115 ASSERT_NE(handle == (uv_handle_t*) &client ||
116 handle == (uv_handle_t*) &connection ||
117 handle == (uv_handle_t*) &timer, 0);
122 static void start_server(uv_loop_t* loop, uv_tcp_t* handle) {
128 r = uv_tcp_init(loop, handle);
131 r = uv_tcp_bind(handle, (const struct sockaddr*) &addr, 0);
134 r = uv_listen((uv_stream_t*) handle, 128, on_connection);
137 uv_unref((uv_handle_t*) handle);
142 * invoked when the handle is closed.
154 /* We can't use the echo server, it doesn't handle ECONNRESET. */