السوك مات رر اله حا This project covers most concepts learned in class so far in addition to one concept that you have t

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

السوك مات رر اله حا This project covers most concepts learned in class so far in addition to one concept that you have t

Post by answerhappygod »

 1
1 (92.1 KiB) Viewed 70 times
 2
2 (92.1 KiB) Viewed 70 times
السوك مات رر اله حا This project covers most concepts learned in class so far in addition to one concept that you have to independently research. Implement a basic electronic chatroom/application that employs a multithreaded server. Both server and client will need to be implemented and brief details of these programs are provided below. 1. The multithreaded chat server must broadcast each mi it receives to all the connected clients, of course. It should also maintain a dynamic list of Socket references associated with those clients using the vector. Using vector object has not been covered in class it is the research component of this project. Please refer to the Vector.pdf handout posted on the course page. 2. The client must be implemented as a GU that can send and receive messages until it sends the string 'Bye'. The GUL interface should include, text field for messages, send button, and text area to display messages received from the server. Once the client sends "Bye", the server informs all users that this client has left. A separate thread will be required to receive messages from the server and add them cumulatively to a text area. The first two things that this thread should do are: a. accept the user's chatroom nickname in a separate pop-up window. Hint: use the following code String handle = JOptionPane showInput Dialog(frame, "Enter your nickname: ", "Nickname", JOptionPane PLAIN_MESSAGE);. b. send this name to the server, the server considers the first message it receives from the client to be the nickname. All other messages should be sent via a text area and associated button. As a simplification, assume that no two clients will select the same nickname. See sample GUI below. Tepsen A Simple Chat Client 4 vecta Dr. Awad has entered the chatroom > صار A Simple Chat Client Name entry KU CpE Studnet has entered the chatroom. KU CpE Studnet:HI Dr. Awad: Hi, How is the Net. Prog. class going? KU CPE Studnet: Enjoying it! KU CPE Studnet: Bye KU CPE Studnet has left the chatroom Entr kname E Cancel OK
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply