Custom Web Proxy
- Grace Chen
- TC Dong
In our proxy.c file, which is the main file, our main functionality for handling client/server communications is housed. We handle socket-related and message parsing-related tasks. The executable file that is printed is called "proxy".
cache.c is the file that holds our definition of the cache entry, as well as various helper functions in navigating/modifying/updating the metadata of the cache.
http.c originally held more functions, but at the moment, it only holds char *host_to_ipaddr, which performs the getaddrinfo call and returns the IP address associated with the inputted URL.
Piazza/http class slides Boyang, Professor Benson Online resources:
- StackOverflow
- Beej's guide on getaddrinfo