To use the Proxy server follow the commands:
- Run the command "g++ thread.cpp" to compile the proxy server.
- Execute ./a.out to start the proxy server.
- In a new terminal (same directory) run the command "gcc mytcpclient -o client" to compile the client.
- Execute ./client to start the command.
- Follow the instructions on the terminals.
Note:
The server makes the request sent by client to "proxy.iiit.ac.in".
If you want to make to the host directly then replace the line 177 in thread.cpp by
"if ((rv = getaddrinfo(hostname, "80", &hints, &servinfo)) != 0)"