Hmm, any clue what this is doing? I'm not sure why I might need it. Pinging is useless because so many routers blackhole pings these days anyway.

I just start a connection attempt and time it out if I have a concern that I won't reach the remote server. A non-blocking connection request is simple enough to do.