Find Jobs
Hire Freelancers

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

₹600-1500 INR

Cerrado
Publicado hace alrededor de 7 años

₹600-1500 INR

Pagado a la entrega
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
ID del proyecto: 13282417

Información sobre el proyecto

3 propuestas
Proyecto remoto
Activo hace 7 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
3 freelancers están ofertando un promedio de ₹3.951 INR por este trabajo
Avatar del usuario
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 en 3 días
4,8 (63 comentarios)
4,9
4,9

Sobre este cliente

Bandera de INDIA
Hyderabad, India
0,0
0
Forma de pago verificada
Miembro desde oct 8, 2014

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.