Home
last modified time | relevance | path

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

/Zephyr-latest/subsys/net/lib/coap/
Dcoap_server.c720 int sock_nfds; in coap_server_thread() local
756 sock_nfds = 0; in coap_server_thread()
761 if (sock_nfds >= MAX_POLL_FD) { in coap_server_thread()
768 sock_fds[sock_nfds].fd = svc->data->sock_fd; in coap_server_thread()
769 sock_fds[sock_nfds].events = ZSOCK_POLLIN; in coap_server_thread()
770 sock_fds[sock_nfds].revents = 0; in coap_server_thread()
771 sock_nfds++; in coap_server_thread()
775 if (sock_nfds < MAX_POLL_FD) { in coap_server_thread()
776 sock_fds[sock_nfds].fd = control_socks[0]; in coap_server_thread()
777 sock_fds[sock_nfds].events = ZSOCK_POLLIN; in coap_server_thread()
[all …]
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_engine.c108 static int sock_nfds; variable
118 int lwm2m_sock_nfds(void) { return sock_nfds; } in lwm2m_sock_nfds()
538 if (sock_nfds >= (MAX_POLL_FD - 1)) { in lwm2m_socket_add()
542 if (sock_nfds >= MAX_POLL_FD) { in lwm2m_socket_add()
547 sock_ctx[sock_nfds] = ctx; in lwm2m_socket_add()
548 sock_fds[sock_nfds].fd = ctx->sock_fd; in lwm2m_socket_add()
549 sock_fds[sock_nfds].events = ZSOCK_POLLIN; in lwm2m_socket_add()
550 sock_nfds++; in lwm2m_socket_add()
559 for (int i = 0; i < sock_nfds; i++) { in lwm2m_socket_update()
572 for (int i = 0; i < sock_nfds; i++) { in lwm2m_socket_del()
[all …]