There are three ".java" files in my work. You should follow my instructions to complet the task:
1. In "Client.java", I set the default socket port number to "6789". And if you want to connect to the "www.icarnegie.com", you should change the class--- Client's "private static final int socketPort" to "80".
2. When run the Server.java, it doesn't stop running until you terminate it. At this time, if you want to run the Client.java, you should type "java Client localhost" to the console. Then when we send the request from the client, we should input the valid format like this: GET /index.html http/1.0. When the client connects to the server, it's current directory is "c:\www\test\".
3. Run the ThreadedServer.java's method is the same to the previous one.