Lines Matching refs:pev
42 static void tcp_svc_handler(struct net_socket_service_event *pev);
124 static int tcp_recv_data(struct net_socket_service_event *pev) in tcp_recv_data() argument
137 if ((pev->event.revents & ZSOCK_POLLERR) || in tcp_recv_data()
138 (pev->event.revents & ZSOCK_POLLNVAL)) { in tcp_recv_data()
139 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in tcp_recv_data()
141 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in tcp_recv_data()
149 if (!(pev->event.revents & ZSOCK_POLLIN)) { in tcp_recv_data()
157 if (fds[SOCK_ID_IPV4_LISTEN].fd == pev->event.fd || in tcp_recv_data()
158 fds[SOCK_ID_IPV6_LISTEN].fd == pev->event.fd) { in tcp_recv_data()
159 sock = zsock_accept(pev->event.fd, in tcp_recv_data()
164 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in tcp_recv_data()
192 ret = zsock_recv(pev->event.fd, buf, sizeof(buf), 0); in tcp_recv_data()
194 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in tcp_recv_data()
205 if (fds[i].fd == pev->event.fd) { in tcp_recv_data()
211 NET_ERR("Descriptor %d not found.", pev->event.fd); in tcp_recv_data()
234 static void tcp_svc_handler(struct net_socket_service_event *pev) in tcp_svc_handler() argument
238 ret = tcp_recv_data(pev); in tcp_svc_handler()