Lines Matching full:sfd
38 int sfd, ret; in FIXTURE_SETUP() local
48 sfd = socket(AF_INET, SOCK_STREAM, 0); in FIXTURE_SETUP()
50 ret = bind(sfd, &addr, sizeof(addr)); in FIXTURE_SETUP()
52 ret = listen(sfd, 10); in FIXTURE_SETUP()
55 ret = getsockname(sfd, &addr, &len); in FIXTURE_SETUP()
61 self->cfd = accept(sfd, &addr, &len); in FIXTURE_SETUP()
64 close(sfd); in FIXTURE_SETUP()
124 int sfd, ret; in FIXTURE_SETUP() local
138 sfd = socket(AF_INET, SOCK_STREAM, 0); in FIXTURE_SETUP()
140 ret = bind(sfd, &addr, sizeof(addr)); in FIXTURE_SETUP()
142 ret = listen(sfd, 10); in FIXTURE_SETUP()
145 ret = getsockname(sfd, &addr, &len); in FIXTURE_SETUP()
163 self->cfd = accept(sfd, &addr, &len); in FIXTURE_SETUP()
176 close(sfd); in FIXTURE_SETUP()
1224 int sfd, ret, fd; in TEST() local
1238 sfd = socket(AF_INET, SOCK_STREAM, 0); in TEST()
1240 ret = bind(sfd, &addr, sizeof(addr)); in TEST()
1242 ret = listen(sfd, 10); in TEST()
1252 ret = setsockopt(sfd, IPPROTO_TCP, TCP_ULP, "tls", sizeof("tls")); in TEST()
1256 ret = getsockname(sfd, &addr, &len); in TEST()
1270 close(sfd); in TEST()
1276 int sfd, ret, fd, cfd; in TEST() local
1292 sfd = socket(AF_INET, SOCK_STREAM, 0); in TEST()
1294 ret = bind(sfd, &addr, sizeof(addr)); in TEST()
1296 ret = listen(sfd, 10); in TEST()
1299 ret = getsockname(sfd, &addr, &len); in TEST()
1317 cfd = accept(sfd, &addr, &len); in TEST()
1330 close(sfd); in TEST()