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,
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
Step: 1
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...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started