serverhandler的channelread0方法什么时候调用
答案:2 悬赏:70
解决时间 2021-02-13 03:45
- 提问者网友:心裂
- 2021-02-12 22:18
serverhandler的channelread0方法什么时候调用
最佳答案
- 二级知识专家网友:转身后的回眸
- 2021-02-12 22:47
ublic HttpHelloWorldServer(int port) {
this.port = port;
}
public void run() throws Exception {
// Configure the server.
EventLoopGroup bossGroup = new NioEventLoopGroup();
EventLoopGroup workerGroup = new NioEventLoopGroup();
try {
ServerBootstrap b = new ServerBootstrap();
b.option(ChannelOption.SO_BACKLOG, 1024);
b.group(bossGroup, workerGroup)
.channel(NioServerSocketChannel.class)
.childHandler(new HttpHelloWorldServerInitializer());
Channel ch = b.bind(port).sync().channel();
ch.closeFuture().sync();
} finally {
this.port = port;
}
public void run() throws Exception {
// Configure the server.
EventLoopGroup bossGroup = new NioEventLoopGroup();
EventLoopGroup workerGroup = new NioEventLoopGroup();
try {
ServerBootstrap b = new ServerBootstrap();
b.option(ChannelOption.SO_BACKLOG, 1024);
b.group(bossGroup, workerGroup)
.channel(NioServerSocketChannel.class)
.childHandler(new HttpHelloWorldServerInitializer());
Channel ch = b.bind(port).sync().channel();
ch.closeFuture().sync();
} finally {
全部回答
- 1楼网友:绝望伪装
- 2021-02-12 23:52
工行维护后很多人都如此啊。。。。<br>看看这个页面里最下面工行的回复 <a href="http://wenwen.soso.com/z/urlalertpage.e?sp=shttp%3a%2f%2fask.alipay.com%2fhelp%2fshow_help----6696098-.htm" target="_blank">http://ask.alipay.com/help/show_help----6696098-.htm</a>
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯