Netty小记——web socket分片聚合实现

在netty中已经对web socket的分片重组进行了相应的实现,具体的实现类是 WebSocketFrameAggregator,该类继承自netty的消息聚合器MessageAggregator。

MessageAggregator

 ......

 * @param <I> the type that covers both start message and content message
 * @param <S> the type of the start message
 * @param <C> the type of the content message (must be a subtype of {
  @link ByteBufHolder})
 * @param <O> the type of the aggregated message (must be a subtype of {
  @code S} and {
  @link ByteBufHolder})
 *
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Netty是一个异步非阻塞的事件驱动型的网络应用程序框架,可以用于实现SocketSocket是计算机网络中运输层的TCP协议的抽象,用于实现不同应用程序进程或网络连接之间的通信。在Netty中,我们可以使用其提供的API进行网络编程,包括建立Socket连接、读写数据等操作。Netty框架简化了网络编程的复杂性,提供了高性能、方便开发的NIO(非阻塞IO)解决方案,可以用于快速开发高性能的协议服务器和客户端。所以,Netty可以实现Socket编程,并且是一个被广泛使用的网络应用程序框架。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [Netty进行Socket编程(一)](https://blog.csdn.net/Solo_two/article/details/78394823)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* [spring boot 整合的netty 实现socket的服务端和客户端](https://download.csdn.net/download/qq_28898309/11166535)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值