Lines Matching refs:client_fd
152 int client_fd; in server_thread_fn() local
169 client_fd = r; in server_thread_fn()
177 addrstr, ntohs(sa.sin_port), client_fd); in server_thread_fn()
180 r = recv(client_fd, addrstr, sizeof(addrstr), 0); in server_thread_fn()
185 r = send(client_fd, SECRET, SECRET_SIZE, 0); in server_thread_fn()
190 r = close(client_fd); in server_thread_fn()
200 int client_fd; in test_common() local
311 client_fd = r; in test_common()
344 r = setsockopt(client_fd, SOL_TLS, TLS_SEC_TAG_LIST, in test_common()
349 r = setsockopt(client_fd, SOL_TLS, TLS_HOSTNAME, "localhost", in test_common()
365 addrstr, ntohs(sa.sin_port), client_fd); in test_common()
367 r = connect(client_fd, (struct sockaddr *)&sa, sizeof(sa)); in test_common()
375 r = send(client_fd, SECRET, SECRET_SIZE, 0); in test_common()
381 r = recv(client_fd, addrstr, sizeof(addrstr), 0); in test_common()
393 r = close(client_fd); in test_common()