A NIO Wrapper for writing server/clients