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?
Thanks,
Paolo
Socket.Connect without timeout
Started by Paolo Patierno, Oct 04 2011 03:56 PM
3 replies to this topic
#1
Posted 04 October 2011 - 03:56 PM
Paolo Patierno
Microsoft MVP on Windows Embedded & IoT
Azure Advisor
Twitter : @ppatierno
Linkedin : paolopatierno
Blog : DevExperience
Blog : Embedded101
?
#2
Posted 04 October 2011 - 07:04 PM
What firmware version are you using? Have you tried 4.2 RC1?
#4
Posted 05 October 2011 - 10:30 AM
No I'm using 4.1 but I have seen that Connect() method hasn't a timeout parameter in 4.2.
Paolo.
Paolo Patierno
Microsoft MVP on Windows Embedded & IoT
Azure Advisor
Twitter : @ppatierno
Linkedin : paolopatierno
Blog : DevExperience
Blog : Embedded101
?
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users