gpt4 book ai didi

Netty 4 - 直接将ByteBuf写入 channel ,绕过管道

转载 作者:行者123 更新时间:2023-12-05 09:21:27 25 4
gpt4 key购买 nike

是否可以使用 Netty 4 直接将 ByteBuf 写入 channel 而无需通过 ChannelOutboundHandler 处理程序?

最佳答案

知道了,获取管道末端的上下文并从那里写入:channel.pipeline().firstContext().write(myByteBuf)

关于Netty 4 - 直接将ByteBuf写入 channel ,绕过管道,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32247634/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com