Question: Chat Server (20 pts) Develop a chat server that can do the followings: (2 pts) Listen to chat clients on a specific port Server Command

 Chat Server (20 pts) Develop a chat server that can dothe followings: (2 pts) Listen to chat clients on a specific portServer Command Prompt ChatServer.py Users\phamc5Desktop)Chat-Room-server-master>ChatServer.py Waiting for connection... (5 pts) Handles multiplechat clients at the same time Server Command Prompt ChatServer.py :Users phamc5\Desktop|Chat-Room-server-masterChatServer.py Na lexa has joined the chat! iri has joined the chat!

Chat Server (20 pts) Develop a chat server that can do the followings: (2 pts) Listen to chat clients on a specific port Server Command Prompt ChatServer.py Users\phamc5Desktop)Chat-Room-server-master>ChatServer.py Waiting for connection... (5 pts) Handles multiple chat clients at the same time Server Command Prompt ChatServer.py :Users phamc5\Desktop|Chat-Room-server-master ChatServer.py Na lexa has joined the chat! iri has joined the chat! nnection . When a chat client gets connected to the chat server (1 pt) Send welcome message to chat client and ask client to enter a name Client Users\phamc5\Desktop\Chat-Room-server-master>ChatClient elcome to NP chatroom! Please type your name and press enter... .(2 pts) Send client a hello message when receive the client name. Also print out a message has joined the room" on the server side E.g., when Alexa joins the chatroom Server Command Prompt- ChatServer.py C: \Users\phamc5 \Desktop\Chat-Room-server-master ChatServer.py aiting for connection... Alexa has joined the chat! Client C: \Users \phamc5\Desktop\Chat-Room-server-master>ChatClient.py elcome to NP chatroom! Please type your name and press enter... Alexa ello Alexa! If you ever want to quit, type (quit} to exit. .(2 pts) Inform everyone when a new client joins the chat roonm E.., when Sin joins the chatroom Server Command Prompt ChatServer.py C: \Users \phamc5 \Desktop\Chat-Room-server-master Chatserver.py Waiting for connection... Alexa has joined the chat! Siri has joined the chat! Client Command Prompt - ChatClient.py :\Users \phamc5\Desktop\Chat-Room-server-master>ChatClient.py elcome to NP chatroom! Please type your name and press enter... Alexa Hello Alexa! If you ever want to quit, type (quit} to exit Siri has joined the chat! . (5 pts) When a chat client sends a message to the room, forward the message to all chat clients are currently joining the chatroonm E.., when Alexa sends a message "Hi Siri" Client: Alexa Command Prompt C: \Users\phamc5\Desktop\Chat-Room-server-master ChatClient.py Welcome to NP chatroom! Please type your name and press enter... Alexa Hello Alexa! If you ever want to quit, type quit} to exit. joined the chat! Hi Sir:i Client: Siri Command Prompt ChatClientpy :\Users\phamc5\Desktop\Chat-Room-server-master>ChatClient.py elcome to NP chatroom! Please type your name and press enter... you ever want to quit, type quit} to exit. Alexa: Hi Siri . (3 pts) When a chat client terminates the connection by sending iquit)", inform everyone " has left the room" E.g., Alexa left the room after a brief chat with Sri Server Command prompt-ChatServer.py Alexa has joined the chat! Siri has joined the chat! Alexa has left the chat! Client: Alexa Command Prompt :\Users phamc5\Desktop\Chat-Room-server-master>ChatClient.py elcome to NP chatroom! Please type your name and press enter.. Alexa ello Alexa! If you ever want to quit, type {quit} to exit. iri has joined the chat! i Siri iri: Hello Alexa. How are you? ine, thanks! Too busy getting this chatroom to work) Siri: It is fun, right? h yeah eed to work on my final project now. ttyl iri: Good luck! Bye Same to you. Bye quit) : \Users lphamc5\Desktop\Chat-Room-server-master> Client: Siri : \Users \phamc5\Desktop | Chat-Room-server-master ChatClient.py elcome to NP chatroom! Please type your name and press enter... ello Siri! If you ever want to quit, type (quit} to exit. Alexa: Hi Siri ello Alexa. How are you? Alexa: Fine, thanks! Too busy getting this chatroom to work) It is fun, right? Alexa: Oh yeah Alexa: Need to work on my final project now. ttyl ood luck! Bye Alexa: Same to you. Bye Alexa has left the chat! Chat Client (10 pts) Develop a chat server that can do the followings: *(1 pt) Connect to a chat server given the server IP Address and port Client Command Prompt - ChatClient.py Users\phamc5\Desktop\Chat-Room-server-master>ChatClient elcome to NP chatroom! Please type your name and press enter... .(1 pt) Let user enter their name, and send it to the chat server Client Command Prompt-ChatClient.py C: \Users \phamc5\Desktop\Chat-Room-server-master>ChatClient.py elcome to NP chatroom! Please type your name and press enter... . (4 pts) Receive messages from the chat server Client Command Prompt C: \Users\phamc5\Desktop Chat-Room-server-master ChatClient Welcome to NP chatroom! Please type your name and press enter... exa Hello Alexa! If vou ever want to quit, tvpe fauitt to exit has joined thechat Hi Siri Siri: Hello Alexa. How are you Fine, thanks! Too busy getting this chatroom to work) iri: it 1is fun, right Oh yeah Need to work on my final project now. ttyl Siri: Good luck! Bye Same to you. Bye Equith . (4 pts) Let user enter message from console and send it to the chat server Client Command Prompt - ChatClient py C: \Users \phamc5\Desktop\Chat-Room-server-master>ChatClient.py elcome to NP chatroom! Please type your name and press enter iri Hello Siri! If you ever want to quit, type (quit to exit. lexa: Hi Siri Hello Alexa. How are you? lexa: Fine, thanks! Too busy getting this chatroom to work :) t is fun, right? Alexa: Oh yeah lexa: Need to work on my final project now. ttyl Alexa: Same to you. Bye lexa has left the chat! BONUS (5 pts) Cortana joins later and wants to see the last 5 messages exchanged in the chat room early on and the chat server will send those messages to Cortana individually Chat Server (20 pts) Develop a chat server that can do the followings: (2 pts) Listen to chat clients on a specific port Server Command Prompt ChatServer.py Users\phamc5Desktop)Chat-Room-server-master>ChatServer.py Waiting for connection... (5 pts) Handles multiple chat clients at the same time Server Command Prompt ChatServer.py :Users phamc5\Desktop|Chat-Room-server-master ChatServer.py Na lexa has joined the chat! iri has joined the chat! nnection . When a chat client gets connected to the chat server (1 pt) Send welcome message to chat client and ask client to enter a name Client Users\phamc5\Desktop\Chat-Room-server-master>ChatClient elcome to NP chatroom! Please type your name and press enter... .(2 pts) Send client a hello message when receive the client name. Also print out a message has joined the room" on the server side E.g., when Alexa joins the chatroom Server Command Prompt- ChatServer.py C: \Users\phamc5 \Desktop\Chat-Room-server-master ChatServer.py aiting for connection... Alexa has joined the chat! Client C: \Users \phamc5\Desktop\Chat-Room-server-master>ChatClient.py elcome to NP chatroom! Please type your name and press enter... Alexa ello Alexa! If you ever want to quit, type (quit} to exit. .(2 pts) Inform everyone when a new client joins the chat roonm E.., when Sin joins the chatroom Server Command Prompt ChatServer.py C: \Users \phamc5 \Desktop\Chat-Room-server-master Chatserver.py Waiting for connection... Alexa has joined the chat! Siri has joined the chat! Client Command Prompt - ChatClient.py :\Users \phamc5\Desktop\Chat-Room-server-master>ChatClient.py elcome to NP chatroom! Please type your name and press enter... Alexa Hello Alexa! If you ever want to quit, type (quit} to exit Siri has joined the chat! . (5 pts) When a chat client sends a message to the room, forward the message to all chat clients are currently joining the chatroonm E.., when Alexa sends a message "Hi Siri" Client: Alexa Command Prompt C: \Users\phamc5\Desktop\Chat-Room-server-master ChatClient.py Welcome to NP chatroom! Please type your name and press enter... Alexa Hello Alexa! If you ever want to quit, type quit} to exit. joined the chat! Hi Sir:i Client: Siri Command Prompt ChatClientpy :\Users\phamc5\Desktop\Chat-Room-server-master>ChatClient.py elcome to NP chatroom! Please type your name and press enter... you ever want to quit, type quit} to exit. Alexa: Hi Siri . (3 pts) When a chat client terminates the connection by sending iquit)", inform everyone " has left the room" E.g., Alexa left the room after a brief chat with Sri Server Command prompt-ChatServer.py Alexa has joined the chat! Siri has joined the chat! Alexa has left the chat! Client: Alexa Command Prompt :\Users phamc5\Desktop\Chat-Room-server-master>ChatClient.py elcome to NP chatroom! Please type your name and press enter.. Alexa ello Alexa! If you ever want to quit, type {quit} to exit. iri has joined the chat! i Siri iri: Hello Alexa. How are you? ine, thanks! Too busy getting this chatroom to work) Siri: It is fun, right? h yeah eed to work on my final project now. ttyl iri: Good luck! Bye Same to you. Bye quit) : \Users lphamc5\Desktop\Chat-Room-server-master> Client: Siri : \Users \phamc5\Desktop | Chat-Room-server-master ChatClient.py elcome to NP chatroom! Please type your name and press enter... ello Siri! If you ever want to quit, type (quit} to exit. Alexa: Hi Siri ello Alexa. How are you? Alexa: Fine, thanks! Too busy getting this chatroom to work) It is fun, right? Alexa: Oh yeah Alexa: Need to work on my final project now. ttyl ood luck! Bye Alexa: Same to you. Bye Alexa has left the chat! Chat Client (10 pts) Develop a chat server that can do the followings: *(1 pt) Connect to a chat server given the server IP Address and port Client Command Prompt - ChatClient.py Users\phamc5\Desktop\Chat-Room-server-master>ChatClient elcome to NP chatroom! Please type your name and press enter... .(1 pt) Let user enter their name, and send it to the chat server Client Command Prompt-ChatClient.py C: \Users \phamc5\Desktop\Chat-Room-server-master>ChatClient.py elcome to NP chatroom! Please type your name and press enter... . (4 pts) Receive messages from the chat server Client Command Prompt C: \Users\phamc5\Desktop Chat-Room-server-master ChatClient Welcome to NP chatroom! Please type your name and press enter... exa Hello Alexa! If vou ever want to quit, tvpe fauitt to exit has joined thechat Hi Siri Siri: Hello Alexa. How are you Fine, thanks! Too busy getting this chatroom to work) iri: it 1is fun, right Oh yeah Need to work on my final project now. ttyl Siri: Good luck! Bye Same to you. Bye Equith . (4 pts) Let user enter message from console and send it to the chat server Client Command Prompt - ChatClient py C: \Users \phamc5\Desktop\Chat-Room-server-master>ChatClient.py elcome to NP chatroom! Please type your name and press enter iri Hello Siri! If you ever want to quit, type (quit to exit. lexa: Hi Siri Hello Alexa. How are you? lexa: Fine, thanks! Too busy getting this chatroom to work :) t is fun, right? Alexa: Oh yeah lexa: Need to work on my final project now. ttyl Alexa: Same to you. Bye lexa has left the chat! BONUS (5 pts) Cortana joins later and wants to see the last 5 messages exchanged in the chat room early on and the chat server will send those messages to Cortana individually

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!