Lines Matching +full:open +full:-

4  * SPDX-License-Identifier: Apache-2.0
26 zassert_true(ret >= 0, "socket open failed"); in prepare_listen_sock_udp_v4()
30 zassert_equal(addr->sin_family, AF_INET, "Invalid family"); in prepare_listen_sock_udp_v4()
45 zassert_true(ret >= 0, "socket open failed"); in prepare_listen_sock_udp_v6()
49 zassert_equal(addr->sin6_family, AF_INET6, "Invalid family"); in prepare_listen_sock_udp_v6()
67 zassert_true(*sock >= 0, "socket open failed"); in prepare_sock_udp_v4()
69 sockaddr->sin_family = AF_INET; in prepare_sock_udp_v4()
70 sockaddr->sin_port = htons(port); in prepare_sock_udp_v4()
71 rv = zsock_inet_pton(AF_INET, addr, &sockaddr->sin_addr); in prepare_sock_udp_v4()
85 zassert_true(*sock >= 0, "socket open failed"); in prepare_sock_udp_v6()
88 sockaddr->sin6_family = AF_INET6; in prepare_sock_udp_v6()
89 sockaddr->sin6_port = htons(port); in prepare_sock_udp_v6()
90 rv = zsock_inet_pton(AF_INET6, addr, &sockaddr->sin6_addr); in prepare_sock_udp_v6()
104 zassert_true(*sock >= 0, "socket open failed"); in prepare_sock_tcp_v4()
106 sockaddr->sin_family = AF_INET; in prepare_sock_tcp_v4()
107 sockaddr->sin_port = htons(port); in prepare_sock_tcp_v4()
108 rv = zsock_inet_pton(AF_INET, addr, &sockaddr->sin_addr); in prepare_sock_tcp_v4()
122 zassert_true(*sock >= 0, "socket open failed"); in prepare_sock_tcp_v6()
124 sockaddr->sin6_family = AF_INET6; in prepare_sock_tcp_v6()
125 sockaddr->sin6_port = htons(port); in prepare_sock_tcp_v6()
126 rv = zsock_inet_pton(AF_INET6, addr, &sockaddr->sin6_addr); in prepare_sock_tcp_v6()
141 zassert_true(*sock >= 0, "socket open failed"); in prepare_sock_tls_v4()
143 sockaddr->sin_family = AF_INET; in prepare_sock_tls_v4()
144 sockaddr->sin_port = htons(port); in prepare_sock_tls_v4()
145 rv = zsock_inet_pton(AF_INET, addr, &sockaddr->sin_addr); in prepare_sock_tls_v4()
160 zassert_true(*sock >= 0, "socket open failed"); in prepare_sock_tls_v6()
162 sockaddr->sin6_family = AF_INET6; in prepare_sock_tls_v6()
163 sockaddr->sin6_port = htons(port); in prepare_sock_tls_v6()
164 rv = zsock_inet_pton(AF_INET6, addr, &sockaddr->sin6_addr); in prepare_sock_tls_v6()
179 zassert_true(*sock >= 0, "socket open failed"); in prepare_sock_dtls_v4()
181 sockaddr->sin_family = AF_INET; in prepare_sock_dtls_v4()
182 sockaddr->sin_port = htons(port); in prepare_sock_dtls_v4()
183 rv = zsock_inet_pton(AF_INET, addr, &sockaddr->sin_addr); in prepare_sock_dtls_v4()
198 zassert_true(*sock >= 0, "socket open failed"); in prepare_sock_dtls_v6()
200 sockaddr->sin6_family = AF_INET6; in prepare_sock_dtls_v6()
201 sockaddr->sin6_port = htons(port); in prepare_sock_dtls_v6()
202 rv = zsock_inet_pton(AF_INET6, addr, &sockaddr->sin6_addr); in prepare_sock_dtls_v6()