Skip to content

Latest commit

 

History

History
37 lines (34 loc) · 1.26 KB

README.md

File metadata and controls

37 lines (34 loc) · 1.26 KB

Simple Talk

Chat between two terminals with this simple chat system. Connect with UDP by inputing IP and port number. This program will be multithreaded to allow concurrency.

Installation

  1. Clone the repository
git clone https://github.com/Tooo/Simple-Talk.git
  1. Make the objects and executable file:
make

Run

  1. Run the executable in two local or remote terminals:
s-talk [my port #] [remote IP] [remote Port #]
  1. Start chatting by inputing messages and pressing enter
  2. Terminate both session with typing this input in one of the terminals.
!

Threads

This program will run with six threads. Four are used for the chat system and two are used for intializing and cleaning up.

Threads Purpose
Main Starts the other five threads
Keyboard Input Receive inputs from local computer
Sends messages to Sender
Sender Receive messages from Keyboard Input
Sends messages to remote terminal
Receiver Receive messages from remote terminal
Sends messages to Screen Output
Screen Output Receive messages from Receiver
Prints messages to screen
Shutdown Manager Locked when messaging system is active
Active when message system terminates