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() ?
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