netty demo

来源:互联网 发布:最终幻想9 知乎 编辑:程序博客网 时间:2024/05/19 03:19

1.server发送 响应给client

修改channelRead方法

@Override    public void channelRead(ChannelHandlerContext ctx, Object msg) {        ctx.write(msg); // (1)        ctx.flush(); // (2)    }

0 0
原创粉丝点击