一个NIO-C/S模型实现Demo

服务端

使用ServerSocketChannel实现服务端的实例化。

server

客户端

使用SocketChannel实现客户端的实例化

你可能感兴趣的:(一个NIO-C/S模型实现Demo)