I've been able to get the timeserver sample to work, and it looks like it will
do most of what I need, with some minor changes. But the one thing I can't
figure out is how to support multiple simultaneous clients. ie. I need some
way to create multiple servers (one per client), or to determine which client
has sent some data so that I can route it to the correct handler. If I can't
do this, the incoming data might be interleaved. Is there a way to do this?
In NIO, you can look at a key to see what connection data is associated with.
Is there a way to separate data by keys? Do I have to create multiple server
instances (one per client)?
Thanks,
Michael