Lines Matching defs:server
49 uv_tcp_t* server;
59 server = (uv_tcp_t*)timer_handle->data;
60 r = uv_accept((uv_stream_t*)server, (uv_stream_t*)accepted_handle);
68 /* After accepting the two clients close the server handle */
70 uv_close((uv_handle_t*)server, close_cb);
102 uv_tcp_t* server = (uv_tcp_t*)malloc(sizeof *server);
106 ASSERT_NOT_NULL(server);
108 r = uv_tcp_init(uv_default_loop(), server);
110 r = uv_tcp_bind(server, (const struct sockaddr*) &addr, 0);
113 r = uv_listen((uv_stream_t*)server, 128, connection_cb);
119 /* The server will not send anything, it should close gracefully. */
141 /* Not that the server will send anything, but otherwise we'll never know
142 * when the server closes the connection. */