I write server application (Windows Server 2003) making upto 1000 ping calls to clients and waiting for receive responses. As ping uses ICMP connection, I've found no way to define from which IP the server receives the responses. Currently I use blocking by Mutex but it practically removes all bonus of multhithreading. Is there another way to make it in multithreaded way? May be I should use another way to connect to clients (the target is to check in fastest way if there is connection to clients)?
views:
58answers:
1
+1
A:
try boost::asio asynchronous connection capability; that way you will not need multiple threads
catwalk
2009-11-10 09:51:06