My assignment is to implement a multithreaded web server in Java but i have no idea where to start. All we've seen in the lectures is how tcp works,layers etc.but i have no idea about how to implement a web server.
Can you give me a starting point?
Since you don't give much information just some links to helpful resources:
First of all, you have to make choice about the programming language you want use. Several languages are particulary useful and more adapted for network programming. I thinking about Erlang for example.
You haven't mention which language should you use. I assumed C/C++.
First, you can look at Boost.Asio library an it's examples . There are two HTTP server examples.
Second, if you need a rough plan on what to do here it is:
Exact function names and overall details are dependent on your programming language.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.