Update network.c

Do FD_ZERO and FD_SET in loop
Update network.c
Update network.c
Merge branch 'master' of https://github.com/mrfloppy82/ffdecsawrapper