Question: THIS PROGRAM MUST BE IN C TO WHOEVER ANSWERS THIS QUESTION PLEASE LISTEN AND FOLLOW THESE EXACT INSTRUCTIONS THE PROGRAM WILL HAVE A SERVER AND

THIS PROGRAM MUST BE IN C

TO WHOEVER ANSWERS THIS QUESTION

PLEASE LISTEN AND FOLLOW THESE EXACT INSTRUCTIONS

THE PROGRAM WILL HAVE A SERVER AND A CLIENT. MULTIPLE CLIENTS CAN LOG ONTO THE SERVER. LETS MAKE THE LIMIT 10

I NEED THE CHATROOM SO THAT YOU CAN LOG IN. THEN THERE IS A GREETING MESSAGE OF SOME SORT. THEN YOU HAVE A PROMPT THAT

WILL ALLOW YOU TO CHOOSE WHAT YOU WANT TO DO.

FOR EXAMPLE:

WELCOME TO OUR CHATROOM

OPTIONS:

1. SEND PRIVATE MESSAGE

2. SEE WHO IS ONLINE

3. SEND WORLDWIDE MESSAGE( SENDS A MESSAGE TO ALL USERS ONLINE)

4. CREATE A NEW USERNAME( MUST CREATE A NEW USERNAME AND CANNOT BE A DUPLICATE)

5. CREATE A PASSWORD FOR THE NEW USER( PASSWORD MUST BE HIDDEN)

PLEASE FOLLOW THESE DIRECTIONS. DO NOT SKIP ANY AND PLEASE PROVIDE THE FULL CODE. I DONT WANT TO SEE ONLY HALF THE CODE

OR JUST ONE PART OF IT. PLEASE DO ALL OF THESE STEPS. THANK YOU. I HAVE PROVIDED THE DIRECTIONS BELOW ALSO.

Linux C Chat Room: Suggested features: Client can log in to the system by entering a name Ask server to display a list of available chat room and then client can select a room. Client can also create a room. Server delete the chat room when no users in it. Client can send message to all the users in the same chat room.

Hint: The sever side may need to maintain two files. One file is for the chat room. The other file is for the online users. Chat room file stores the names of the chat rooms and messages sent among the users in the same rooms. Online user file stores the room the user is staying at and the remained time the user can stay in the chat room. Note: 1) The online user names and chat rooms cannot be duplicated. 2) The server can monitor how long the user has been connected to the server. 3) If the user has been on line longer than the maximum time set in the server, the user would be automatically disconnected and removed from the online user information file. 4)You can more credits if you add more features. 5) You may need to use threads to implement it.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!