uIP "applications"
2005-04-20 by Chuck Hackett
Is anyone familiar with uIP? I have downloaded the AVR port from: http://www.laskater.com/projects/uipAVRgettingstarted.htm and the small test application compiled and ran first time (trial version of ImageCraft compiler but it also has #ifdef to support gcc). The only change I had to make was to reduce a buffer declaration to get it to fit in the SRAM on an ATMega16. So far I'm impressed. One of the main reasons I tried it was that it supported the ASIX Ethernet controller chip that's on the board I have. Question: I'd like to compile in two "applications" as uIP refers to them but I'm a bit confused about how to structure the main module so that each has the correct contexts. The two I want to compile in are the SMTP and Web Server modules. I don't want you to write the code for me, I just need some guidance in how one compiles in two "applications" as opposed to one: - setting them up so they each have the appropriate context globals) - routing uIP events to the appropriate application Any pointers would be appreciated ... single indirection only, let's keep it simple :-) Cheers, Chuck Hackett "Good judgment comes from experience, experience comes from bad judgment" 7.5" gauge Union Pacific Northern (4-8-4) 844 http://www.whitetrout.net/Chuck