Lines Matching refs:connfd
256 add_pollfd(struct pollfd **ufds, int *nfds, int connfd) in add_pollfd() argument
278 (*ufds)[ii].fd = connfd; in add_pollfd()
309 int connfd = (*ufds)[ii].fd; in process_events() local
312 if (connfd == sockfd) { in process_events()
315 if ((connfd = accept(sockfd, NULL, NULL)) < 0) { in process_events()
320 if (add_pollfd(ufds, nfds, connfd)) { in process_events()
323 connfd); in process_events()
327 ret = service_request(connfd); in process_events()
333 connfd); in process_events()
337 close(connfd); in process_events()
346 connfd); in process_events()
350 close(connfd); in process_events()
356 " for fd (%d)\n", revents, connfd); in process_events()
360 close(connfd); in process_events()