This is an example of java nio with a tcp server and client