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

N+ Port Listener


  • Please log in to reply
7 replies to this topic

#1 Luke Z

Luke Z

    New Member

  • Members
  • Pip
  • 8 posts

Posted 18 April 2011 - 07:14 PM

Hi all. Been lurking for a bit playing around with my N+. Got a 4x20 LCD up and running with a shift register as my first project. But now I would like to move on to the real reason a got a N+. I want to listen to a specific port (UDP or TCP) which is broadcast to by an application running through the internet from another location. The information that is sent over this port will then be displayed on the LCD. I used to program C# for sharepoint, so its not really new to me. But NETMF is completely new to me. I have looked at a few of the webserver examples, but I can't seem to get what I really want. I think what I am looking for is either a UDP or TCP listener. But the NETMF doesn't support them. Any ideas on other methods, or am I completely missing the boat somewhere?

#2 Nevyn

Nevyn

    Advanced Member

  • Members
  • PipPipPip
  • 1072 posts
  • LocationNorth Yorkshire, UK

Posted 18 April 2011 - 08:16 PM

I think what I am looking for is either a UDP or TCP listener. But the NETMF doesn't support them. Any ideas on other methods, or am I completely missing the boat somewhere?


Luke,

I needed to provide a web server for a project I worked on a while ago (details here) which can be used to isten on multiple ports - just put each listener in it's own thread.

And welcome to the community.

Hope this helps,
Mark

To be or not to be = 0xFF

 

Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life

Follow @nevynuk on Twitter


#3 Luke Z

Luke Z

    New Member

  • Members
  • Pip
  • 8 posts

Posted 20 April 2011 - 07:36 PM

Luke,

I needed to provide a web server for a project I worked on a while ago (details here) which can be used to isten on multiple ports - just put each listener in it's own thread.

And welcome to the community.

Hope this helps,
Mark


Thanks Mark, I'll take a look and report back.

#4 Luke Z

Luke Z

    New Member

  • Members
  • Pip
  • 8 posts

Posted 21 April 2011 - 04:05 PM

Mark, I wanted to get back to you. I understand now and your example REALLY helped. I took bits of your code (I hope thats ok) and am patching them into the rest of my code. Thank you so much I learned a lot. Luke

#5 Michel Trahan

Michel Trahan

    Advanced Member

  • Members
  • PipPipPip
  • 155 posts

Posted 21 April 2011 - 04:45 PM

I needed to provide a web server for a project I worked on a while ago (details here) which can be used to isten on multiple ports - just put each listener in it's own thread.

Would it be too much to ask to package this project and transfer it to the wiki somehow ? Thanks for posting !
Started with C in 1985, moved to Vb3 ... to vb6 and stopped. Now started with .Net and learning C# and VB.net and wishing VB.net was on MF !

#6 Nevyn

Nevyn

    Advanced Member

  • Members
  • PipPipPip
  • 1072 posts
  • LocationNorth Yorkshire, UK

Posted 21 April 2011 - 05:29 PM

I wanted to get back to you. I understand now and your example REALLY helped. I took bits of your code (I hope thats ok) and am patching them into the rest of my code.


I'm glad it helped. My code is free for non commercial use so feel free to use it as such.

Regards,
Mark

To be or not to be = 0xFF

 

Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life

Follow @nevynuk on Twitter


#7 Nevyn

Nevyn

    Advanced Member

  • Members
  • PipPipPip
  • 1072 posts
  • LocationNorth Yorkshire, UK

Posted 21 April 2011 - 05:36 PM

Would it be too much to ask to package this project and transfer it to the wiki somehow ? Thanks for posting !


I suppose this needs some feedback from Chris. Has there been any ideas about a structure of a code repository and requirements for adding code into it?

The project showcase is a great place to put code etc. or links to our own blogs / pages discussing our projects and the Wiki seems to be the next step. I'd like to know if there is any thoughts on the way forward with the Wiki following the discussion thread a few weeks ago.

Regards,
Mark

To be or not to be = 0xFF

 

Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life

Follow @nevynuk on Twitter


#8 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 21 April 2011 - 08:03 PM

For now, please post code samples in the Project Showcase forum.

Soon we'll be opening the Sandbox Wiki to the public--and that will become the place to post actual code (linked from the forums). We will be soliciting feedback on templates to help structure that...and it sounds like a few of you already have very good ideas on what that should look like!

Thanks for all the contributions, guys. I love this community.

Chris




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.