How to build a high quality Client/Server Java application – a Java Chat Client/Server example Part5
April 5th, 2006Part1 , Part2 , Part3 , Part4 ,Part5
Now that we have tested out Sockets and threads, we need to combine the two to make a concurrent server . A concurrent sever can handle more than one client at a time. It works like the old time phone operators. It gets a connecting client call, then it creates a thread to handle that call, and then goes back to listen for the next caller.
Concurrent Sever example
Run server and then start two instances of the client3. You should see in the server console that it is handling both users concurrently, hence a concurrent server.
Java,/client/server,course,chat,sockets,network,swing