I am using non-block sockets to create multiple(2000) connections. Typically, I wrote the following code:
#include <