Ricardo Harris

Logo

Coder. Cat Dad. Car Nut.
I’m a software developer focused on mastering my craft one language at a time. The projects in this portfolio are some of my favorite works.


View My Resume

View My LinkedIn Profile

View My GitHub Profile

Back to Portfolio

UDP Client/Server

Project description

This project is divided into a client and server that communicate over a network using a UDP connection to transfer text files from the client to the server. Text files have the transfer time and date appended to the name of the file.

How to compile and run the program

To compile and run this project, make sure that you use two separate terminals when operating on the same device, and that there is a .txt file on the device running the Client program.

g++ Client.cpp -o Client;
./Client;
g++ Server.cpp -o Server;
./Server;

UI Design

Begin by launching the Server, providing a port to communicate through (see Fig 1). Then launch the Client, providing the Server port and IP address, followed by the .txt file that you wish to transfer (see Fig 2). Afterwards, note that a new .txt file is located in the same directory as the Server with the same contents as the text file from the Client, as well as a new title including the date and time transferred (see Fig 3 and 4).

screenshot
Fig 1. Server initialization.

screenshot
Fig 2. Client setup.

screenshot
Fig 3. Directory before transfer.

screenshot
Fig 3. Directory after transfer.

Back to Portfolio