Skip to content

A basic chat program. Server in Python, client in C

Notifications You must be signed in to change notification settings

SarahCawley/Chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat

A basic chat program. The Server in written in Python and the client is wirtten in C.

Compile the client: 1) run make

Start the server: 1) In one terminal run python chatserve.py [portNumber]. 2) The script witll print out the hostname of the machine you are currently on.

Start the client: 1) In a second terminal run ./chatclient [hostname] [port]

Order of messages: 1) The server will send a "Thank you for connecting" message to the client 2) The client should enter their username 3) The clent writes the first message 4) Messages must be sent in order starting with the clent, then server, client, etc.

To exit the chat: Either the client or the server can end the chat by entering \quit At least one series of messages must be passed before you can quit

If the server ends the chat both parites will be kicked out
If the client ends the chat the server will wait for the chat to start again

About

A basic chat program. Server in Python, client in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published