nmathewson/libevent-book — Issue #8: FD_SET(i, &readset)?
Author: zephyro
Created: 2012-02-15 08:08:11+00:00
State: open

In file "01intro.txt"

/* Add all of the interesting fds to readset */
for (i=0; i < n_sockets; ++i) {
if (fd[i]>maxfd) maxfd = fd[i];
FD_SET(i, &readset);
}

Should it be FD_SET(fd[i], &readset)? I'm not sure about it.