EMX stuck if no internet

I am using GHIElectronics.NETMF.Net.Ethernet.IsCableConnected.
That works good.

But if the internet is not available then it takes around a minute for the dns or socket functions to return.

Is there a simple function like ping etc…that will time out quickly. So I can use that to check Internet availablity

Users usually have their own thread that they terminate on timeout