netty 怎样设置CONNECT
展开全部
ClientBootstrap bootstrap = new ClientBootstrap(new NioClientSocketChannelFactory( Executors.newCachedThreadPool(),
Executors.newCachedThreadPool())
);
ChannelPipelineFactory pipelineFactory = new MyPipelineFactory(clientSessionHandler ,decoder,encoder);
bootstrap.setPipelineFactory( pipelineFactory );
bootstrap.setOption("allIdleTime","5");
Executors.newCachedThreadPool())
);
ChannelPipelineFactory pipelineFactory = new MyPipelineFactory(clientSessionHandler ,decoder,encoder);
bootstrap.setPipelineFactory( pipelineFactory );
bootstrap.setOption("allIdleTime","5");
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询