
Naga aims to be a very small nio library that provides a handful of java classes to wrap the usual socket and serversocket with asynchronous nio counterparts.
all of this is driven from a single thread, making it useful for both client (e.g. allowing i/o to be done in the awt-thread without any need for threads) and server programming (1 thread for all connections instead of 2 threads/connection).
naga contains the code needed to get nio up and running without having to code partially read buffers and setting various selection key flags.