Find Jobs
Hire Freelancers

C program to write a proxyserver creation along with cache websites listed in file.

₹600-1500 INR

Geschlossen
Veröffentlicht vor etwa 7 Jahren

₹600-1500 INR

Bezahlt bei Lieferung
Requirements: 1. Create a C-based client-server architecture using sockets 2. The proxy server should be able to accept and service single client’s http requests 3. The proxy server should run on server 1 machine and the client should run on server 2 machine 4. The proxy server should be able to cache at least five recent requested webpages, if available 5. When a page is requested, the proxy sever should be able to check if the requested page is current. If the page is not current, update the cache with the current page and return the current page. If the page is current, return the page from the cache. Following are requested websites: [login to view URL] 20161011090000 [login to view URL] 20161010090000 [login to view URL] 20161013090000 [login to view URL] 201610140090000 Procedure: 1. Create a C-based server that can accept single client’s request using sockets 2. The created proxy server should also be able to connect to the client requested website through port 80 3. Make sure the proxy server runs on server 1 and the format to start the proxy server as follows pserver <port_number> where pserver is the proxy server executable and port_number is the port number on which the proxy server listens 4. Create a C-based client that can connect to the proxy server using sockets 5. Make sure the client runs on server2 and connects the proxy server. The user can request the desired web page using the below format client <port_number> url: <url> where client is the client executable, port_number is the port number on which the client connects the server and url is the requested url 6. Once the proxy server gets a request from the client, it then forwards the request to the web server. Figure 1 shows the overall architecture 7. The proxy server checks for the response from the web server 8. If the HTTP response is 200, the returned web page from the web server is cached in the proxy server. The proxy server stores the webpage in a file and assigns a filename based on the time of visit. The filename format is YYYYMMDDhhmmss. Where YYYY is the year, MM is the month, DD is the day, hh is the hour in 24-hour format, mm is the minutes, and ss is the seconds when the website was visited 9. A list file ([login to view URL]) is created which stores the URL of the webpage and the associated cached web page filename 10. The list file stores five recent URLs. The cached websites that are not listed in the list file should be deleted 11. Once the returned web page is cached, the web page is forwarded to the client. Verify to see if the returned page is same as the browser returned page. 12. If the HTTP response is not 200, do not cache the web page instead forward the HTTP response to the client 13. When the client requests a webpage that is in the [login to view URL] file, the proxy server checks if the page is current by contacting the server. If the page is modified, the proxy server updates the cache with new page and returns the page otherwise returns the page from the cache 14. Test web caching by accessing multiple websites
Projekt-ID: 13282417

Über das Projekt

3 Vorschläge
Remote Projekt
Aktiv vor 7 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
3 Freelancer bieten im Durchschnitt ₹3.951 INR für diesen Auftrag
Avatar des Nutzers
Hello, I have 30 years experience programming in C. I will create a proxy server in C using sockets. A milestone payment for the full budget for this project must be deposited with this site before your offer can be accepted. Alan Idler Chief Software Architect Idleswell Software Creations
₹9.254 INR in 3 Tagen
4,8 (63 Bewertungen)
4,9
4,9

Über den Kunden

Flagge von INDIA
Hyderabad, India
0,0
0
Zahlungsmethode verifiziert
Mitglied seit Okt. 8, 2014

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.