通过bio、nio、netty方式建立socket的echo应用
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src complete bio,nio,netty server Sep 30, 2016
.gitignore complete bio,nio,netty server Sep 30, 2016
README.md Update README.md Sep 30, 2016
pom.xml complete bio,nio,netty server Sep 30, 2016

README.md

socketdemo

通过bio、nio、netty方式建立socket的echo应用

基本原理

Server端需要ServerSocket和socket,其中ServerSocket处理accept,而socket处理io操作

文件夹说明

  • bio文件夹:使用ServerSocket和Socket
  • nio文件夹:使用ServerSocketChannel和SocketChannel
  • netty文件夹:使用NioServerSocketChannel和NioSocketChannel