Ok, I\'m going crazy here. I have been rewriting the NIO code for my server, and running into some real headaches. The bottom line is that getting NIO \"right\" is very ha
I suggest you look in the sample/nio directory in your JDK. This has a number of simple examples including the two you mention.