Check out the windows sockets (winsock) implementation: http://burks.bton.ac.uk/burks/pcinfo/progdocs/winsock/winsock1.htm And the linux sockets: http://www.tenouk.com/cnlinuxsockettutorials.html Notice that the windows sockets implements Berkeley 4.3, and so you should, in theory, be able to write a bare-bones program that compiles on both systems with minimal compiler specific code (surrounded by directives so it autoselects based on the compiler). The winsock tutorial has a section on how MS Berkeley implementation differs from the 'official' implementation, although with a very simple program you might not have to change anything. -Adam On 6/19/08, Xiaofan Chen wrote: > I am trying to see if I can write some simple C based program > to test the HTTP demo project from Microchip > (http://www.microchip.com/tcpip). The demo project is using > the browser as the host program to test various aspect of > the TCP/IP stack (turn on/off LED, updating button status, > cookies, file updates, form processing, etc). > > My goal right now is quite modest, say I just want to > turn on/off the LEDs using a C based program under > Linux/Windows. Are there any examples out there? > > Xiaofan > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- EARTH DAY 2008 Tuesday April 22 Save Money * Save Oil * Save Lives * Save the Planet http://www.driveslowly.org -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist