Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

In the proxy server assignment, do we have to use sockets and do all the programming our selves, or can we use some of the other classes like HttpURLConnection to makes the connections?

0
10 Posted

In the proxy server assignment, do we have to use sockets and do all the programming our selves, or can we use some of the other classes like HttpURLConnection to makes the connections?

0
10

A. You must use the TCP conection-oriented sockets to provide the connection between your cache-server and the web clients and servers. You may use any of the classes that are available to do this. • Q. Writing a browser as an extension seems to be too difficult. Are there other extensions I could write? A. Besides the ones listed on the assignment sheet, you could also a) include log files for your proxy server. These log files could i) record every cache object written to disk, or ii) keep records of how long files are kept in the cache including an analysis of max. time, min. time and average time for files to be stored in cache. You could also determine a ratio of hits/misses. b) You could prefetch “popular” files during slow times and store them in the cache. • Q. Do I need to worry about reading in images? A. Yes, when you read an html document, more than likely that document will reference one or more images. The client (browser) will parse the html and send a GET for each of th

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123