java nio

     Java中nio有3個核心概念:channel,buffer,selector,在網絡nio中,把channel的事件註冊到selector,當網絡就緒後進行讀寫操作,channel之間通過buffer傳遞數據。   Channel          一共有4種通道:           FileChannel           SocketChannel  基於TCP協議      
相關文章
相關標籤/搜索