Question: Write a program that enables any number of clients to chat. Implement one server that serves all the clients, as shown in Figure 31.22. Name
Write a program that enables any number of clients to chat. Implement one server that serves all the clients, as shown in Figure 31.22. Name the client Exercise31_10Client and the server Exercise31_10Server.
Multi ThreadServer started at Mon Jun 10 21:45:21 EDT 2013 Connection from Socketf addr-D/127.0.0.1,port350929, localport38000) at Mon Jun 10 21:45:40 EDT 2013 Connection from Socket[ addr=/127.0.0.1,port=50931, localport=8000] at Mon Jun 10 21:46:04 EDT 2013 Connection from Socket addr=/127.0.0.1,port350936, localport=8000] at Mon Jun 10 21:46:11 EDT 2013 John Katie Name Name Enter text Hi, This is Katie Enter text HI, This Is John Katie: Hi This is Katie John: Hi This is John Katie: Hi This is Katie John: Hi This is John (b) (a) (c)
Step by Step Solution
3.52 Rating (162 Votes )
There are 3 Steps involved in it
Program Plan Create a public class Exercise3110Server which is the server side implementation of multiple client chat application Override startStage ps method of Application class which create the vi... View full answer
Get step-by-step solutions from verified subject matter experts
