Skip to content

C Chat server using pthread that allow multiple clients to connect/authenticate with the server and then communicate to fellow clients.

Notifications You must be signed in to change notification settings

symborsk/Pthread-Chat-Server-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assignment 2 - 379 _____ .__ __ ________ _________________ ________ / _ \ ______ || ____ ____ _____ ____ / | _ \ __ ______ / __
/ /\ \ / // / |/ \ / \ / _/ __ \ / \ \ / / ______ ( < / /_ / / | \ \ _ | / // > | \ Y Y \ /| | \ | / \ // / \ / / / / _|__ /___ >____ >_ /|| /|| /___ >| /| ______ \ /______ /// //
/ / / /_____/ / / / / / /

    									By John Symborski & Aaron Philips
    									     1387814          1408127

Client interface:

Entering the chat room: When a user enters the chat room it immediatley prints out all the usernames that are currently in the chat already in the format : " has been added to chat room". After these messages are printed and the client will see " has been added to chat room". After that point the user can chat in chat room.

People entering\leaving: When you are in the chat room and someone enters/leaves it simply prints out " has been added/removed from chat room."

Printing out all current usernames: When you want to print out and view all the current usernames the client must type ".usernames". This will then print out each username. This does not send a message to the server but simply prompt client server to print out the list that it has.

Exiting the chat room: In order to ensure the client shut downs correctly the user must hit CTLR C in order to exit and terminate client.

Important note: Please note that for our client server interface to break up confusion over user messages and user update messages there is always a space made right before a update message. So an update message would look like: John has been added to chat room -- user update message Aaron : Hey did you know A & W has 2 teen burgers for 8 bucks? -- user message

About

C Chat server using pthread that allow multiple clients to connect/authenticate with the server and then communicate to fellow clients.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •