The server is designed via multi threaded mode and configured to run on 9000 port. The port could be configured from the MainServer class.
Architecture is as follows below:
create new thread
to service the req
Client ----------> Server----------------- ----------------> Worker Thread |____| resume listening to other client request
File Store:
- 914bbs.txt
- testimage.jpg
- love.jpg
- Architecture.png
Some sample request:
http://:9000/testimage.jpg http://:9000/914bbs.txt http://:9000/love2.jpg
You need to run the MainServer class to make the server alive for 200 second.