maybe this will fix it?
This commit is contained in:
parent
fb10f04f23
commit
045bfb57b7
1 changed files with 1 additions and 2 deletions
|
|
@ -80,7 +80,7 @@ int main(int argc, char **argv)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// for loop that loops up to the max file descriptor.
|
// for loop that loops up to the max file descriptor.
|
||||||
for(int fileIter = 0; fileIter < maxFD; fileIter++)
|
for(int fileIter = 0; fileIter <= maxFD; fileIter++)
|
||||||
{
|
{
|
||||||
// check to see if the file descriptor is in the set of sockets using FD_ISSET()
|
// check to see if the file descriptor is in the set of sockets using FD_ISSET()
|
||||||
if(FD_ISSET(fileIter, &socketList))
|
if(FD_ISSET(fileIter, &socketList))
|
||||||
|
|
@ -141,7 +141,6 @@ int main(int argc, char **argv)
|
||||||
printf("\nDEBUG: Working or not?\n");
|
printf("\nDEBUG: Working or not?\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// OLD CODE HERE
|
// OLD CODE HERE
|
||||||
// // grab the size of the listened clients
|
// // grab the size of the listened clients
|
||||||
// clientSize = sizeof(clientAddr);
|
// clientSize = sizeof(clientAddr);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue