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

UPDATE: Fixed for RC3 -- New Bug discovered in Socket.Connect Method!


  • Please log in to reply
25 replies to this topic

#21 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 06 October 2011 - 11:04 AM

Any news on RC2 chris?

Hi David and welcome to the forums!

I think you'll find your answer here:
http://forums.netdui...dpost__p__18799

We just downloaded the final SDK and PK. We'll build an "RC3" build based on this and post it by early next week.


"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#22 Silent12

Silent12

    New Member

  • Members
  • Pip
  • 5 posts

Posted 25 October 2011 - 12:19 AM

Socket.Connect is broken in RC3 (at least for TCP)

#23 Valkyrie-MT

Valkyrie-MT

    Advanced Member

  • Members
  • PipPipPip
  • 315 posts
  • LocationIndiana, USA

Posted 25 October 2011 - 02:08 AM

Socket.Connect is broken in RC3 (at least for TCP)


Ugh. I'd only tested UDP and TCP listen. I had not tested a TCP socket.Connect then socket.Send. I can't get it to work either, but only for TCP and Sending... UDP seems to work fine.

Update: It turns out I do have code that does this in one of my apps. And it works fine. I think it doesn't work until after the IP address is obtained by Netduino. I don't really know what to look for to see if the network connection is ready. Here is the actual working code from my app:


using (var s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp) { SendTimeout = 2000 })
{
     var entry = Dns.GetHostEntry(host);  // DNS lookup
     var address = entry.AddressList[0];
     var ep = new IPEndPoint(address, 80);

     s.Connect(ep);

     s.Send(Encoding.UTF8.GetBytes(message));

     s.Receive(response);      
}

-Valkyrie-MT

#24 stafil

stafil

    Member

  • Members
  • PipPip
  • 27 posts

Posted 07 November 2011 - 08:57 PM

still, not working with RC3?

#25 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 07 November 2011 - 09:33 PM

There were some networking bugs introduced with RC2/RC3. I just saw a bugfix posted on netmf.codeplex.com. We'll get it checked in within this next week and issue a new RC4 firmware build. Chris

#26 Valkyrie-MT

Valkyrie-MT

    Advanced Member

  • Members
  • PipPipPip
  • 315 posts
  • LocationIndiana, USA

Posted 08 November 2011 - 02:07 AM

still, not working with RC3?


What exactly is not working? Can you post the exact code that does not work?

-Valkyrie-MT




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.