[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Porting a project from uip to lwip, advice needed

From: Nikolas Karakotas
Subject: Re: [lwip-users] Porting a project from uip to lwip, advice needed
Date: Thu, 11 Oct 2012 08:59:42 +0300

In contrib there is an example of httpserver based on netconn (very limited). To get the features you require, get parts from the httpserver_raw (all the parsing and fs) and add it to the netconn example. If you need to serve .js file then add it in the httpd_structs.h.Tto get started and understand the code port the features you require from the raw example and get it running.
Sent: Wednesday, October 10, 2012 11:02 PM
Subject: Re: [lwip-users] Porting a project from uip to lwip, advice needed
Thanks for the response.
I am not really intent on using the netconn/sockets api, I just want to find the best way to do what I need to.
Between what I have gathered from reading this list and your reply, it seems that the raw api is indeed the way to go.
That being said, the biggest question I have in regards to that involves getting the raw api to work with an OS. I know that it is possible as I have seen people multiple state that they have gotten it to work, but I do not know where to begin doing that and have been unable to find any sort of guide / examples.
If someone could give me some hints on where to start, or some sort of example to get me moving in the right direction it would be greatly appreciated !

On Wed, Oct 10, 2012 at 12:09 PM, Simon Goldschmidt <address@hidden> wrote:
Louis Wells wrote:
... However I have found that there is not a webserver written for use with the netconn api that is even remotely close to being able to handle the functionality that we need.
I have also spent some time looking at the webserver written for the raw lwip api, which appears to be much closer to something that we could use.
Finally, it is possible that there is a better webserver written for the netconn / sockets api that I am missing. If this is the case I would be extremely grateful if someone could point me in the right direction.
Why are you focused on a netconn/socket http server? The raw API httpd should do exactly what you want. I must admit though that there are currently no examples of how to get SSI and CGI to work, but it does work. _javascript_, otoh is just text to the http server - there's nothing special for the http server to do to "support" it.
The raw API httpd server is from TI, you might find an example of how to use CGI and SSI in their Stellaris software package which you can download from their server.

lwip-users mailing list

lwip-users mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]