Lines Matching defs:client
172 auto funcOnRead = [](uv_stream_t *client, ssize_t nread, const uv_buf_t *buf) -> void {
178 uv_close((uv_handle_t *)client, [](uv_handle_t *handle) { free(handle); });
184 uv_tcp_t *client = new uv_tcp_t();
185 uv_tcp_init(server->loop, client);
186 if (uv_accept(server, (uv_stream_t *)client) == 0) {
187 uv_read_start((uv_stream_t *)client,
194 uv_close((uv_handle_t *)client, [](uv_handle_t *handle) { free(handle); });
208 bool UtForwardConnect(uv_loop_t *loop, uv_tcp_t *client, uv_tcp_t *server)
228 if (uv_tcp_init(loop, client)) {
232 if (uv_tcp_connect(connReq, client, (const struct sockaddr *)&addr, funcConn)) {
245 uv_tcp_t client;
250 // client create forward timeout
254 UtForwardConnect(&loop, &client, &server);