Could anybody post some code to handle non-blocking Sockets with 1.4’s NIO, as opposed to the ‘traditional’ approach of starting a new Thread for each connection (which quickly breaks under hundreds of Threads)?
A simple chat server (similar to the thousands of ‘traditionally’ written ones that are already out there) would be ideal.
Thanks.