easteregg Leprechaun
  • Patrick Collins
    • Home
    • Blog
      • eJPTv1 Certification
      • Conferences

      • Blog Home
    • Travel Photos
    • Notes
    • Graduation!
    • Projects and University Work
      • Honours Project
      • Web App Pen Test

      • All projects
    • Socials
    • About Me

    TCP Character Counter

    Handshake between two computers

    About

    • Module: CMP109
    • Title: Computer Networking 1
    • Grade: N/A

    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.


    Your browser does not support the video tag.

    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.


    Your browser does not support the video tag.

    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.

    Project's Github Repository

    CMP109 TCP Character Counter

    Simple character/word counter using python socket programming, TCP server and client


    Copyright © 2022-2025 Patrick Collins
    Contact Me: Contact@paddylonglegs.site
    Background created by freepik