Searched refs:srvst (Results 1 – 1 of 1) sorted by relevance
88 p = realloc(srvst->socks, sizeof(*srvst->socks) * (srvst->nfds + 1)); in server_add_state()92 srvst->socks[srvst->nfds].cb = cb; in server_add_state()93 srvst->socks[srvst->nfds].serv = serv; in server_add_state()95 p = realloc(srvst->fds, sizeof(*srvst->fds) * (srvst->nfds + 1)); in server_add_state()99 srvst->fds[srvst->nfds].fd = fd; in server_add_state()100 srvst->fds[srvst->nfds].events = poll_events; in server_add_state()101 srvst->fds[srvst->nfds].revents = 0; in server_add_state()145 return srvst->cb->accept(srvst->cb->ptr, srvst->fds[idx].fd, NULL); in udp_server_cb()182 pres = poll(srvst.fds, srvst.nfds, -1); in sock_server()190 if (!srvst.socks[n].cb(&srvst, n)) in sock_server()[all …]
Completed in 3 milliseconds