![]() | 1 helloSpringBoot 2020-05-12 12:54:16 +08:00 tcp 是流式协议,需要自己判断数据是不是读取完成了,在这点上 aio 和 nio 是没区别的 ps. JAVA linux 上 aio 也是基于 nio 实现的,linux 没有支持 aio |
![]() | 2 helloSpringBoot 2020-05-12 12:57:02 +08:00 参考这篇文章,可以看下里面的 AioServer 怎么读的数据: https://juejin.im/post/5d3b05ad6fb9a07ed6581a0a |
![]() | 3 Moonkin OP @helloSpringBoot 谢谢大佬 了解了 |