/UDP-client-server-project

An extension of the TCP project using UDP.

Primary LanguageCMIT LicenseMIT

UDP Client/Server Project

Author: Kevin Funderburg

About

The goal of this project is to gain a fundamental understanding of the interactions between clients and servers via UDP. This is shown through development of a school database system, where clients can make requests to a server, the server then processes the requests and returns the results.

Usage

Make commands

make - compile and create executables
make clean - reset executables and object files

Once compiled, begin the server with ./server then the client with ./client.

The client will then show:

What would you like to do? (enter h for help) :

At this point you can follow the commands as listed below.

Command line structure:

[adadssdeh] [a add] [da display_all] [ds display_student] [s showscores] [d delete] [e exit] [h help]

a add
    adds a student to the database with the following parameters:
    [student ID] [First Name] [Last Name] [Grade]
da display_all
    display all student data in database
ds display_student
    display a student from database with student ID = [student ID]
s showscores
    show all students with a grade higher than [grade]
d delete
    delete a student from data base with student ID = [student ID]
e exit
    exit the application
h help
    outputs usage listing

Examples

a 291892 Francois Butter 86
da
showscores 75
delete 748393

Licensing & Thanks

This project is released under the MIT License.

Changelog

  • v1.0.0