java nio

     Java中nio有3个核心概念:channel,buffer,selector,在网络nio中,把channel的事件注册到selector,当网络就绪后进行读写操作,channel之间通过buffer传递数据。   Channel          一共有4种通道:           FileChannel           SocketChannel  基于TCP协议      
相关文章
相关标签/搜索