if (poll_set[list_fd].revents & POLLRDNORM) { /* if new connection */
n--; /* decrement active */
len = sizeof(c_addr); /* and call accept */
if (poll_set[list_fd].revents & POLLRDNORM) { /* if new connection */
n--; /* decrement active */
len = sizeof(c_addr); /* and call accept */
poll_set[fd].fd = fd; /* set new connection socket */
if (max_fd < fd) max_fd = fd; /* if needed set new maximum */
}
poll_set[fd].fd = fd; /* set new connection socket */
if (max_fd < fd) max_fd = fd; /* if needed set new maximum */
}
i = list_fd; /* first socket to look */
while (n != 0) { /* loop until active */
i++; /* start after listening socket */
i = list_fd; /* first socket to look */
while (n != 0) { /* loop until active */
i++; /* start after listening socket */