Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Socket.Connect without timeout


  • Please log in to reply
3 replies to this topic

#1 Paolo Patierno

Paolo Patierno

    Advanced Member

  • Members
  • PipPipPip
  • 169 posts
  • LocationItaly

Posted 04 October 2011 - 03:56 PM

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

Paolo Patierno

Microsoft MVP on Windows Embedded & IoT

Azure Advisor

Twitter : @ppatierno
Linkedin : paolopatierno
Blog : DevExperience

Blog : Embedded101
?


#2 ColinR

ColinR

    Advanced Member

  • Members
  • PipPipPip
  • 142 posts
  • LocationCape Town, South Africa

Posted 04 October 2011 - 07:04 PM

What firmware version are you using? Have you tried 4.2 RC1?

#3 Dixon

Dixon

    Advanced Member

  • Members
  • PipPipPip
  • 32 posts

Posted 04 October 2011 - 07:33 PM

4.2 RC1 has a known issue with Socket.Connect().

The issue was discovered by Christopher Gilmore and discussed here

Carlos

#4 Paolo Patierno

Paolo Patierno

    Advanced Member

  • Members
  • PipPipPip
  • 169 posts
  • LocationItaly

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

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.