Multithreaded web server using HTTP
-Need to create a multithreaded webserver that accepts multiple connections from the client(browser) for serving video(mpeg,flv,wmv etc) files and stream via HTTP.
-When you type the url from the browser, the server has to parse the url which supports url /encoding/decoding, connecting to the media server and showing the list of video files to the user
i.e in the browser. When the user clicks the link (the name of the video file) it has to stream the mpeg video over the browser via HTTP. (for testing you can put some media files in the directory to show up in the browser)
-A multi-threaded approach will have a main thread to accept the connection and spawn a new thread for each incoming request. That is, once the server
accepts a connection, it will spawn a thread to parse the request, transmit the file to , etc .When multiple users requests for the same video file, other users can read only the video file (avoiding any synchronization issues)
-you will need to support enough of the HTTP protocol(like GET method) to allow an existing web browser
(Firefox or IE or VLC) to connect to your web server and retrieve the contents(video file) to the front page and stream it.
-Once the server is running,
-Read the complete request from the URL
-Parse the Request
- Check the Method say GET
-Determine the connection type say close or keep:alive
-Figure out the content type
-Read the video file, make response
-If file not foung, should issue the status error code
-Supporting enough MIME types.
Not to use: HTTP_API or third party libraries like boost etc.
prog enviroment : visual C++ (DLL) .Do not create an MFC application. Language C++.
Please do not use any available online source codes. Should be your own code.
8 freelancers are bidding on average $228 for this job
Hello :) I have professional experience in developing Win32 native C++ applications, and am interested in building you a media server that meets your requirements.