Lines Matching refs:server_fd
312 static int tcp_recv_send(int server_fd) in tcp_recv_send() argument
318 fd = accept(server_fd, NULL, NULL); in tcp_recv_send()
357 static int udp_recv_send(int server_fd) in udp_recv_send() argument
381 n = recvmsg(server_fd, &msg, 0); in udp_recv_send()
437 static int tcp_echo_test(int client_fd, int server_fd) in tcp_echo_test() argument
444 err = tcp_recv_send(server_fd); in tcp_echo_test()
454 static int udp_echo_test(int client_fd, int server_fd) in udp_echo_test() argument
461 err = udp_recv_send(server_fd); in udp_echo_test()
869 int client_fd, server_fd, err; in drop_on_lookup() local
877 server_fd = make_server(t->sotype, t->listen_at.ip, t->listen_at.port, in drop_on_lookup()
879 if (server_fd < 0) in drop_on_lookup()
904 close(server_fd); in drop_on_lookup()
1120 int err, client_fd, connected_fd, server_fd; in run_sk_assign_connected() local
1123 server_fd = make_server(sotype, EXT_IP4, EXT_PORT, NULL); in run_sk_assign_connected()
1124 if (server_fd < 0) in run_sk_assign_connected()
1146 recv_byte(server_fd); in run_sk_assign_connected()
1155 close(server_fd); in run_sk_assign_connected()
1191 int map_fd, server_fd, client_fd; in run_multi_prog_lookup() local
1214 server_fd = make_server(SOCK_STREAM, t->listen_at.ip, in run_multi_prog_lookup()
1216 if (server_fd < 0) in run_multi_prog_lookup()
1219 err = update_lookup_map(t->redir_map, SERVER_A, server_fd); in run_multi_prog_lookup()
1250 close(server_fd); in run_multi_prog_lookup()