Python socket programming is used for this project. Two programs were made, one for the server and one for the client.
Starting the Server
Before using the client the server must be started. The server will receive the text file from the client and calculate the number of characters and words. The video below shows this process.
Using the Client
The demonstration below shows the client sending the text file to server. Once the server has finished calculating, the results are sent back and displayed by the client.
Like the UDP project, this was a good introduction to TCP. The difference from UDP in the TCP socket programming was the functions and how it sent the data. The programs had to connect this time and accept the incoming connection.
<> Code
If you would like to check out the code, or download and try yourself, have a look at the repository below.
Please DO NOT plagiarise my code. You will be caught, it's not worth it.