Home
last modified time | relevance | path

Searched refs:s_sock_tcp (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/tests/net/socket/service/src/
Dmain.c65 int s_sock_tcp; in run_test_service() local
79 prepare_sock_tcp_v6(MY_IPV6_ADDR, SERVER_PORT, &s_sock_tcp, &s_addr); in run_test_service()
87 sock[0].fd = s_sock_tcp; in run_test_service()
114 ret = bind(s_sock_tcp, (struct sockaddr *)&s_addr, sizeof(s_addr)); in run_test_service()
116 ret = listen(s_sock_tcp, 0); in run_test_service()
133 new_sock = accept(s_sock_tcp, NULL, NULL); in run_test_service()
164 ret = close(s_sock_tcp); in run_test_service()
/Zephyr-latest/tests/net/socket/poll/src/
Dmain.c40 int s_sock_tcp; in ZTEST() local
52 prepare_sock_tcp_v6(MY_IPV6_ADDR, SERVER_PORT, &s_sock_tcp, &s_addr); in ZTEST()
138 res = zsock_bind(s_sock_tcp, (struct sockaddr *)&s_addr, sizeof(s_addr)); in ZTEST()
140 res = zsock_listen(s_sock_tcp, 0); in ZTEST()
156 res = zsock_close(s_sock_tcp); in ZTEST()