Thought for the Dazed

I've had to give up that Distance Learning course as I was having trouble seeing the teacher.

Flickr
www.flickr.com
RobMiles' items Go to RobMiles' photostream
Twitter
C# Yellow Book

Search entire site

Micro Framework Discussion > Check internet connection or Socket.Connect() timeout

Hello,
I use Socket.Connect() method to connect a remote host. If remote host isn't reachable, my application hangs on Socket.Connect() statement. Is there a way to set a timeout so that I can do some operations if remote host isn't reachable?
Is there a method to check if my board has internet connection so that I avoid using Socket.Connect() ?

Thanks,
Paolo
October 6, 2011 | Unregistered CommenterPaolo Patierno