c++ client socket simultaneously connection

view story

http://stackoverflow.com – hello i have a client socket application, that connect at the same time, with more than 5000 server with tcpip in linux, but when i open the socket connection, almost all connections, retrieve the error Operation now in progress. Here my client socket connect code: how can i doing a good thousands simultaneously socket conecction at the same time??? sorry for my english. here my code : struct sockaddr_in echoserver; struct sockaddr_in sa_loc; char aport[64]; int optval = 1; int sock; memset(&echoserver, 0, sizeof (echoserver)); echoserver.sin_family = AF_INET; echoserver.sin_addr.s_ad (HowTos)