hey i am try to design webserver by using java /C++ programming or any programming language so if any one interesting to assist me i am attaching source code hear .you can use plugs in to access source code by using any programming language

Recommended Answers

All 2 Replies

Web servers are text based so they are rather simple.

For the basic version just...
Create it like any other client / server program. HTTP is a connection oriented protocol (been a while) so you will want to make sure to use that method to create your socket. After that is done all you need to know is what exactly the client will send you as a request (should be able to be found using google and the HTTP spec) and then write the code to read in a HTML file and send it over the network, which in java is pretty much the same as writing it to the hard drive...

Get O'Reilly's Java Network Programming book, it has a webserver as one of the easier examples :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.