- Kent Phipps UFID: 402092184
- Waleed Aref UFID: 96185607
- Simar UFID: 62217796
The TCPTypingTest is a client-server based application that allows users to test their typing speed and accuracy over a TCP connection. The server sends typing prompts to the client, times the responses, and logs the results. The client can end the session or request previous session logs.
- Typing Test: Receive randomly chosen sentences to type which helps in testing typing speed and accuracy.
- Logging: Each typing response time is logged for future retrieval.
- Session Control: Clients can request to end the session gracefully or forcefully.
-
Compile the Server:
- Navigate to the directory containing
Server.java. - Compile the server using the Java compiler:
javac Server.java
- Navigate to the directory containing
-
Run the Server:
- Start the server with a specific port:
java Server <port>
- Example:
java Server 4444
- Start the server with a specific port:
-
Compile the Client:
- Navigate to the directory containing
Client.java. - Compile the client using the Java compiler:
javac Client.java
- Navigate to the directory containing
-
Run the Client:
- Connect to the server by specifying the server's IP address and port:
java Client <Server-ip> <port>
- Example:
java Client 192.168.1.5 4444
- Connect to the server by specifying the server's IP address and port:
- Start Typing Test:
- From the client terminal, type
Readyto begin the typing test. The server will send a sentence to type.
- From the client terminal, type
- View Logs:
- Type
Logto request viewing all past responses' logs.
- Type
- End Session Gracefully:
- Type
Overto end the connection gracefully.
- Type
- Force End Game:
- Type
End Gameat any point to immediately end the typing test and close the connection.
- Type