Searched refs:s_sock (Results 1 – 4 of 4) sorted by relevance
/Zephyr-Core-3.7.0/tests/net/socket/select/src/ |
D | main.c | 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() [all …]
|
/Zephyr-Core-3.7.0/tests/net/socket/tcp/src/ |
D | main.c | 234 int s_sock; in ZTEST_USER() local 242 prepare_sock_tcp_v4(MY_IPV4_ADDR, SERVER_PORT, &s_sock, &s_saddr); in ZTEST_USER() 244 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER() 245 test_listen(s_sock); in ZTEST_USER() 250 test_accept(s_sock, &new_sock, &addr, &addrlen); in ZTEST_USER() 260 test_close(s_sock); in ZTEST_USER() 269 int s_sock; in ZTEST_USER() local 277 prepare_sock_tcp_v6(MY_IPV6_ADDR, SERVER_PORT, &s_sock, &s_saddr); in ZTEST_USER() 279 test_bind(s_sock, (struct sockaddr *)&s_saddr, sizeof(s_saddr)); in ZTEST_USER() 280 test_listen(s_sock); in ZTEST_USER() [all …]
|
/Zephyr-Core-3.7.0/tests/net/socket/poll/src/ |
D | main.c | 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() [all …]
|
/Zephyr-Core-3.7.0/tests/net/socket/tls/src/ |
D | main.c | 38 int c_sock = -1, s_sock = -1, new_sock = -1; variable 59 static void test_config_psk(int s_sock, int c_sock) in test_config_psk() argument 75 if (s_sock >= 0) { in test_config_psk() 76 zassert_equal(zsock_setsockopt(s_sock, SOL_TLS, TLS_SEC_TAG_LIST, in test_config_psk() 173 if (s_sock >= 0) { in test_sockets_close() 174 test_close(s_sock); in test_sockets_close() 175 s_sock = -1; in test_sockets_close() 320 prepare_sock_tls_v6(MY_IPV6_ADDR, ANY_PORT, &s_sock, in test_prepare_tls_connection() 327 prepare_sock_tls_v4(MY_IPV4_ADDR, ANY_PORT, &s_sock, in test_prepare_tls_connection() 332 test_config_psk(s_sock, c_sock); in test_prepare_tls_connection() [all …]
|