Skip to content

与netty集成的问题 #211

@ccwxl

Description

@ccwxl
  • 示例
  .addLast(new FixedLengthFrameDecoder(60))
  .addLast(new FastProtoDecoder<>(MyPojo.class))
  .addLast(new FastProtoEncoder());
  • 我看与netty集成需要先有一个tcp解码器 .addLast(new FixedLengthFrameDecoder(60)),将一包的数据解码出来然后才用fastproto再转换 .addLast(new FastProtoDecoder<>(MyPojo.class))
  • 有没有可能直接使用fastproto就 .addLast(new FastProtoDecoder<>(MyPojo.class)))可以了,基础的解码和转成类的解码一起做掉。

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions