Home
last modified time | relevance | path

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

/Zephyr-latest/samples/net/sockets/echo_async_select/src/
Dsocket_echo_select.c109 int serv6; local
133 serv6 = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP);
134 if (serv6 < 0) {
143 res = setsockopt(serv6, IPPROTO_IPV6, IPV6_V6ONLY, &TRUE, sizeof(TRUE));
149 res = bind(serv6, (struct sockaddr *)&bind_addr6, sizeof(bind_addr6));
154 setblocking(serv6, false);
155 listen(serv6, 5);
156 pollfds_add(serv6);
187 if (fd == serv6) {
189 if (fd == serv4 || fd == serv6) {
/Zephyr-latest/samples/net/sockets/echo_async/src/
Dsocket_echo.c125 int serv6; in main() local
154 serv6 = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP); in main()
155 if (serv6 < 0) { in main()
164 res = setsockopt(serv6, IPPROTO_IPV6, IPV6_V6ONLY, &TRUE, sizeof(TRUE)); in main()
170 res = bind(serv6, (struct sockaddr *)&bind_addr6, sizeof(bind_addr6)); in main()
176 setblocking(serv6, false); in main()
177 listen(serv6, 5); in main()
178 pollfds_add(serv6); in main()