Disclosure: the code I\'m working on is for university coursework.
Background: The task I\'m trying to complete is to report on the effect of different threading tec
If you're running out of source ports but aren't actually maintaining that many open connections, set the SO_REUSEADDR socket option. This will enable you to reuse local ports that are still in the TIME_WAIT state.
SO_REUSEADDR
TIME_WAIT