SquareServer
demonstrates a simple network server that can handle only one client at a time.
We can connect to square server using telnet, or using SquareClient
.
SquareQueue
demonstrates the use of BlockingQueue
s instead of the network as a channel.
See also: grep
message-passing example