Lines Matching refs:s_sock
38 int s_sock; in ZTEST() local
50 prepare_sock_udp_v6(MY_IPV6_ADDR, SERVER_PORT, &s_sock, &s_addr); in ZTEST()
54 res = zsock_bind(s_sock, (struct sockaddr *)&s_addr, sizeof(s_addr)); in ZTEST()
63 pollfds[1].fd = s_sock; in ZTEST()
75 zassert_equal(pollfds[1].fd, s_sock, ""); in ZTEST()
101 zassert_equal(pollfds[1].fd, s_sock, ""); in ZTEST()
107 len = zsock_recv(s_sock, BUF_AND_SIZE(buf), 0); in ZTEST()
170 res = zsock_close(s_sock); in ZTEST()
182 int s_sock; in ZTEST() local
190 prepare_sock_tcp_v6(MY_IPV6_ADDR, SERVER_PORT, &s_sock, &s_addr); in ZTEST()
192 res = zsock_bind(s_sock, (struct sockaddr *)&s_addr, sizeof(s_addr)); in ZTEST()
194 res = zsock_listen(s_sock, 0); in ZTEST()
199 new_sock = zsock_accept(s_sock, NULL, NULL); in ZTEST()
245 res = zsock_close(s_sock); in ZTEST()