This project serves This article.
In the project, I use java selector interface to implement a simple Nio Server.
Run the src/main/scala/test/Server.Scala
, you run the server in localhost:1237.
Then run the src/main/java/test/SocketClientExample.java
, you run a client connected to the server.