Hello,
Thanks for you code, I have learnt a lot. And your comments are pretty enough to keep me going even when I am tired :)
But I have some areas that are not so much pretty clear to me:
You used list of ports, and at same time you used only one process, wont this impact on speed?
fd_set list is global and it is also initialized during each time a port is to be processed, where will fd's members be when one port makes way for another (but will not yet closed).
I would like to see an example that uses multiple ports.
Hello,
Thanks for you code, I have learnt a lot. And your comments are pretty enough to keep me going even when I am tired :)
But I have some areas that are not so much pretty clear to me:
You used list of ports, and at same time you used only one process, wont this impact on speed?
fd_set list is global and it is also initialized during each time a port is to be processed, where will fd's members be when one port makes way for another (but will not yet closed).
I would like to see an example that uses multiple ports.