Lines Matching refs:s_sock
72 int s_sock; in ZTEST_USER() local
82 prepare_sock_udp_v6(MY_IPV6_ADDR, SERVER_PORT, &s_sock, &s_addr); in ZTEST_USER()
84 res = zsock_bind(s_sock, (struct sockaddr *)&s_addr, sizeof(s_addr)); in ZTEST_USER()
92 ZSOCK_FD_SET(s_sock, &readfds); in ZTEST_USER()
97 res = zsock_select(s_sock + 1, &readfds, NULL, NULL, &tval); in ZTEST_USER()
107 zassert_false(ZSOCK_FD_ISSET(s_sock, &readfds), ""); in ZTEST_USER()
111 ZSOCK_FD_SET(s_sock, &readfds); in ZTEST_USER()
115 res = zsock_select(s_sock + 1, &readfds, NULL, NULL, &tval); in ZTEST_USER()
126 ZSOCK_FD_SET(s_sock, &readfds); in ZTEST_USER()
130 res = zsock_select(s_sock + 1, &readfds, NULL, NULL, &tval); in ZTEST_USER()
136 zassert_true(ZSOCK_FD_ISSET(s_sock, &readfds), ""); in ZTEST_USER()
140 len = zsock_recv(s_sock, BUF_AND_SIZE(buf), 0); in ZTEST_USER()
144 ZSOCK_FD_SET(s_sock, &readfds); in ZTEST_USER()
147 res = zsock_select(s_sock + 1, &readfds, NULL, NULL, &tval); in ZTEST_USER()
150 zassert_false(ZSOCK_FD_ISSET(s_sock, &readfds), ""); in ZTEST_USER()
158 ZSOCK_FD_SET(s_sock, &readfds); in ZTEST_USER()
161 res = zsock_select(s_sock + 1, &readfds, NULL, NULL, &tval); in ZTEST_USER()
166 res = zsock_close(s_sock); in ZTEST_USER()