I have a list of socks proxy and i want to check them wether they are alive or not.
i od fsocketopen to host and port, and if host is not available then it takes a long time until TTL expired and fsocketopen says cannot connect to host.

so is there a way to make
checking of 5 or 10 socks proxies simlutaneous
how to make optimized and fast socks checking? before socket open ping might help?
how to reduce time of try-to-connect, lets say to 1 or 2 seconds per each socks proxy?