Question: MUST BE IN THE C PROGRAMMING LANGUAGE ITS A CHATROOM IN C Linux C Chat Room: Suggested features: Client can log in to the system
MUST BE IN THE C PROGRAMMING LANGUAGE
ITS A CHATROOM IN C
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
Get step-by-step solutions from verified subject matter experts
