Lines Matching full:sfd
45 int sfd, cfd; in test_tcp() local
49 sfd = start_server(family, SOCK_STREAM, in test_tcp()
51 if (!ASSERT_GE(sfd, 0, "start_server")) in test_tcp()
54 cfd = connect_to_fd(sfd, 0); in test_tcp()
56 close(sfd); in test_tcp()
59 close(sfd); in test_tcp()
73 int sfd; in test_udp() local
77 sfd = start_server(family, SOCK_DGRAM, in test_udp()
79 if (!ASSERT_GE(sfd, 0, "start_server")) in test_udp()
81 close(sfd); in test_udp()
91 int cfd = -1, sfd = -1, fd = -1, ret; in test_ktls() local
96 sfd = start_server(family, SOCK_STREAM, in test_ktls()
98 if (!ASSERT_GE(sfd, 0, "start_server")) in test_ktls()
100 fd = connect_to_fd(sfd, 0); in test_ktls()
104 cfd = accept(sfd, NULL, 0); in test_ktls()
108 close(sfd); in test_ktls()
109 sfd = -1; in test_ktls()
154 close(sfd); in test_ktls()
161 int sfd = -1, fd = -1, cfd = -1, flags; in test_nonstandard_opt() local
166 sfd = start_server(family, SOCK_STREAM, in test_nonstandard_opt()
168 if (!ASSERT_GE(sfd, 0, "start_server")) in test_nonstandard_opt()
171 fd = connect_to_fd(sfd, 0); in test_nonstandard_opt()
184 cfd = accept(sfd, NULL, 0); in test_nonstandard_opt()
194 close(sfd); in test_nonstandard_opt()