netty
西二旗卷饼王
这个作者很懒,什么都没留下…
展开
-
NIO之channel与selector
channel channel分为serverSocketChannel和socketChannel;前者是server创建的让client来连接的标识;后者是client端创建;一个完整的链路可以理解为 server端存在:一个serverSocketChannel和一个socketChannel; client端存在:一个与server端的socketChannel相通的socket原创 2017-10-20 15:29:29 · 334 阅读 · 0 评论 -
NIO之ByteBuffer
mark clear(扩):(position,limit),It sets the limit to the capacity and the position to zero reset(部分回退):(position),Resets this buffer's position to the previously-marked position. fl原创 2017-10-16 16:10:18 · 156 阅读 · 0 评论