server重启,client需要重新连接
> Date: Thu, 23 Jul 2009 16:56:03 +0800 > Subject: mina client side question > From: [email protected] > To: [email protected] > > I write a simple mina client side > // this code start the client, doesn't close the client,because it must > received all the server data > public void start() { > NioSocketConnector connector = new NioSocketConnector(); > sessionConfigSet(connector.getSessionConfig()); // 配置session config > DefaultIoFilterChainBuilder chain = connector.getFilterChain(); > chain.addLast("codec", getProtocolCodecFilter()); > connector.setHandler(getHandler()); > ConnectFuture future = connector.connect(new InetSocketAddress(ip, port)); > future.awaitUninterruptibly(); > } > but if the server restart, the client can not received any data, how can I > fixed this situation? _________________________________________________________________ 上Windows Live 中国首页,下载最新版Messenger! http://www.windowslive.cn
