共用方式為


.NET Microframework (NETMF) Web Server source code available

So as I got lots of asks to get the code of my Web Server, I’ve decided to create a Codeplex project. You’ll find the source here: https://netmfwebserver.codeplex.com/

It does include the following features:

  • Start, stop, Pause the Web Server
  • Creation of a Web Server on any port
  • Fully functional multithread Web Server supporting GET only
  • Downloading any file present on a SD (or any other physical storage)
  • A full function to get all the parameters of a URL

Examples of usage can be found on this blog. Working to publish a fully functional example.

Feedback welcome!

Comments

  • Anonymous
    April 07, 2013
    The comment has been removed

  • Anonymous
    April 12, 2013
    Please ask your question in the right forum. This place is for .NET Microframework. and the web server I have implemented is VERY far to a normal ASP.NET Web Server.

  • Anonymous
    March 31, 2014
    I have implemented your webserver code in my project. netduinoblog.wordpress.com/.../netduino-can-you-hear-me Receiving the requests is not a problem, I found it very exciting to be able to communicate with my NP2. So far the happy part. :) When I try to send a response to the request the NP2 doesn't show any exceptions but the controller sending the requests immediatly gets a Connection Closed Exception. So I can't receive an answer. Have you had any similar problems? Or any ideas as to why this occurs? Much appreciated!