Sunday 11 November 2012

How to make a web server

Any embedded device can be connected to the cloud and provide its own service,So after choosing you hardware such as a ARM kit or even a FPGA, The simplest method is to port an operating system on it.

Check link for porting linux on arm9
Check link for porting FreeRtos on arm7
check link for porting RT-Linux on powerpc (FPGA)


Once you have ported an OS , you got to enable ethernet facilities .

Then you can run a socket based program (check tutorial) , with this program running all you got to do is access your machine from any other PC connected to the ethernet by specifying the IP address.
That's it, by pinging the server it can execute any task as defined by your program,(Note socket just provides the means of connection,the program must also process data).

If i define port id as 80 and provide service of handling web pages or html contents , then i would have developed a HTTP server.

For a FTP server (check sourcecodes) you have to use a port id of 21.


No comments:

Post a Comment