A commandline chat application which runs on the network designed in CP341 Computer Networking.
This C project provides an example application that works on the custom CP341 network.
chat.c
is an example CLI that makes use of the applictation layer to interactively send and receive chat messages on the network.
This code depends on our nic_app library, which is available here. To compile and run the code, run the following commands:
git clone https://github.com/tonydoesathing/nic_app
cd chat_app
./library_script.sh
./src/chat
Note: in order to make network calls, the router from nic_net must be running on the computer you wish to run the application on.
This application calls the sendMessage function of the nic_app library, passing it a destination to send the message to, a string of text recieved from the user, the length in bytes of that text, and the app id defined for this application.
The following code was written by Jessica Hannebert, Dylan Chapell, and Tony Mastromarino.