NIO Wrapper for creating server and clients