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

    UDP Calculator

    Numbers mixed with binary

    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 numbers from the client and calculate the answer. The video below shows this process.

    Your browser does not support the video tag.

    Using the Client

    The demonstration below shows the client sending a method to calculate with and two numbers to the 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.

    This project was a fun introduction into how UDP functions. It was also my first time using python and socket programming. Which was a nice break from C++. I picked up python pretty quickly and didn't have too much difficulty with this project, however I must admit that it took me a bit too long to realise the server must be started first before the client.

    <> 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 UDP Calculator

    Simple calculator using UDP python server and client


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