Skip to content
KyleRyan edited this page Feb 12, 2016 · 2 revisions

Welcome to the CSCI-415-Assignment-2 wiki! This living document will detail the working specifications for our project. Feel free to edit this as necessary.

Description: This proxy will consist of a thread manager that handles connection processing, a proxy thread that actually handles forwarding of requests and logging, and a main method which simply starts the proxy.

Proxy

Parameters:

  • Connection Object
  • Logging enabled
  • Logging location

Behavior:

  • Listen on given Socket
  • Forward and anonymize GET-Requests
  • Forward and log HTTP responses
  • Cache data on hard drive
  • Dispose on client disconnect

Thread Manager

Parameters:

  • Port Number
  • Max Number of Connections
  • Logging enabled
  • Logging location

Behavior:

  • Listen on port number
  • When connection is made to socket launch a new proxy thread with the socket
  • Ensure that maximum number of threads is not exceeded if max number is enabled

Main Method

Parameters:

  • Port Number
  • Max Number of Connections
  • Logging enabled
  • Logging location

Behavior:

  • Accept and interpret execution flags
  • Launch a thread manager with the given flags
Clone this wiki locally