I was working on it over the winter break. I implemented a simple single packet webserver (capable of sending up to ~1.4kbyte files). I was able to add in http authentication and i/o port control before school started up again.
I hope to eventually release the source after I make it more modular (I hope to add in something like php's fsockopen so you can implement whatever protocols you want). It currently uses 1 cog dedicated to handling incoming packets and sending replies. The current unoptimized spin code takes about 45ms to respond to packets.
Comments
I hope to eventually release the source after I make it more modular (I hope to add in something like php's fsockopen so you can implement whatever protocols you want). It currently uses 1 cog dedicated to handling incoming packets and sending replies. The current unoptimized spin code takes about 45ms to respond to packets.
The link to the thread is http://forums.parallax.com/showthread.php?p=622051 . The version posted in that thread only supports UDP, Ping, and ARP.
Current supported protocols and functions:
- Single Packet HTTP Server
- HTTP Authentication (built in base64 decode of user/pass auth header)
- ICMP Ping Replies
- UDP Echo
- ARP Reply / Request
Harrison
Post Edited (Harrison.) : 1/25/2007 6:02:15 PM GMT
Nice one - no point re-inventing the wheel from my part so.keep me posted on progress.