ping and multithreading

Hello to all

I'm creating a class which does the ping. I'm using rawsocket from this example ( http://tangentsoft.net/wskfaq/examples/rawping.html ).
In this example the process blocks the execution flow when the pinged machine is down. I dont want my process freezes so i have used multithreading: a new thread for each instance. At the moment it doesn't work well. Is there any problem to use rawsocket with multithreading?

Thanks in advance
Last edited on
You could use non-blocking sockets for your ping.

http://rhoden.id.au/doc/sockets2.html
http://www.lowtek.com/sockets/select.html
Last edited on
Too many difficult for me and too much time. Ping is a little piece of my project.
My project is a dll unmanaged: it offers "C" procedures to the user. Is there a way to use managed ping class for my problem?

Thank you
Topic archived. No new replies allowed.