Home
last modified time | relevance | path

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

/Zephyr-latest/samples/net/sockets/echo_async_select/src/
Dsocket_echo_select.c100 int serv4; local
118 serv4 = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
119 if (serv4 < 0) {
124 res = bind(serv4, (struct sockaddr *)&bind_addr4, sizeof(bind_addr4));
129 setblocking(serv4, false);
130 listen(serv4, 5);
131 pollfds_add(serv4);
189 if (fd == serv4 || fd == serv6) {
/Zephyr-latest/samples/net/sockets/echo_async/src/
Dsocket_echo.c115 int serv4; in main() local
136 serv4 = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in main()
137 if (serv4 < 0) { in main()
142 res = bind(serv4, (struct sockaddr *)&bind_addr4, sizeof(bind_addr4)); in main()
148 setblocking(serv4, false); in main()
149 listen(serv4, 5); in main()
150 pollfds_add(serv4); in main()