dubbo提供者暴露流程解析
服务器端/** * 功能描述: 基于NIO(非线程阻塞)实现的网络聊天室服务端<br> * * @since: 1.0.0 * @Author:薛向毅 */public class ChatRoomServer { private Selector selector = null; static final int port = 8089; pri...
@Test public void client() throws Exception{ //1、获取通道 SocketChannel sChannel = SocketChannel.open(new InetSocketAddress("127.0.0.1",9898)); //2、切换非阻塞 sChannel.con...
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号