摘要: Selector selector = Selector.open(); channel.configureBlocking(false); SelectionKey key = channel.register(selector, SelectionKey.OP_READ); while(true) { int readyChannels = selector.select(); if... 阅读全文
posted @ 2018-03-19 20:00 夜行过客 阅读(336) 评论(0) 推荐(0)