In my app, I need to open many threads which all connect to a same server and same port, reading and writing data at the same time. But the problem is that after some time of execution, I got error something like "ESocketError: maximum number of sockets allowed....", it seems that if there's too many threads(actually over 10 or so), then it won't let me connect.
I use TClientSocket to do the socket communication. So i'd like to ask why I am getting this error? Is there any limit on number of threads connecting to a same server and port number?
Thanks for any input.