Question: Write the program given in the Java Networking Slides where a single client and server are presenting a scenario of chatting. Your program should introduce

Write the program given in the “Java Networking Slides” where a single client and server are presenting a scenario of chatting.
Your program should introduce a minimum of two clients to chat with. Implement one server that serves both the clients /and many clients.
Your program should run minimum 3 windows, one Server, and at least two Clients, Sample output below,

Multi-threaded Server MultiThreadServer started at Wednesday March 27 04:53:15 EST 2019 Connection

from Socket[addr=/127.0.0.1,port=57327.localport=8000] at Wednesday March 27 04:53:15 EST 2019 Connection from Socket[addr=/127.0.0.1,port-57328

1. You can use any one of javax.swing or JavaFX API for the GUI design 

2. Your server program should be multithreaded and capable of handling multiple clients' request
 
 

Multi-threaded Server MultiThreadServer started at Wednesday March 27 04:53:15 EST 2019 Connection from Socket[addr=/127.0.0.1,port=57327.localport=8000] at Wednesday March 27 04:53:15 EST 2019 Connection from Socket[addr=/127.0.0.1,port-57328 localport-8000] at Wednesday March 27 04:53:15 EST 2019 ali: hi how are you? mahboob: I am fine, and you? ali: this is fun X

Step by Step Solution

3.34 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Creating a complete chat application with GUI in Java including the server and two clients is a complex task that requires a substantial amount of code I can provide you with a simplified example to h... View full answer

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 Programming Questions!