Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[b] How to make a simple web server on C [\b]

Status
Not open for further replies.

komyg

Programmer
Dec 13, 2005
68
BR
I'm trying to do a simple web server on C.

It'll be really simple because it has to accept just one client connection and read and write characters to and from the socket.

I'm using Linux Debian and I don't know where to start, i.e. wich header file do I use, or how do I open the socket?

Thank you,
Komyg
 
Do you have any experience of writing any kind of network application at all?


--
 
lol Salem, I'm guessing not, considering they asked how to open a socket !

First, learn network programming :
Then read the HTTP protocol, and implement it :
Then you will have an HTTP server.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Ok, that should do it. Thanks a lot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top