Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add encoder and decoder for network messages like netty #34

Closed
lhjw9810 opened this issue Oct 31, 2019 · 1 comment
Closed

Add encoder and decoder for network messages like netty #34

lhjw9810 opened this issue Oct 31, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request proposal Proposal for this repo

Comments

@lhjw9810
Copy link

粘包、拆包能像netty一样提供一些内置方法使用吗?

@lhjw9810 lhjw9810 added enhancement New feature or request proposal Proposal for this repo labels Oct 31, 2019
@panjf2000
Copy link
Owner

panjf2000 commented Oct 31, 2019

你是想说提供类似 netty 里的那几个内置解码器对吧?这几个:

  • LineBasedFrameDecoder
  • DelimiterBasedFrameDecoder
  • FixedLengthFrameDecoder
  • LengthFieldBasedFrameDecoder

这个可以做,我后面会拉个分支进行开发。谢谢你的提议😆

@panjf2000 panjf2000 changed the title 粘包拆包 Add encoder and decoder for network messages Oct 31, 2019
panjf2000 added a commit that referenced this issue Nov 1, 2019
@panjf2000 panjf2000 changed the title Add encoder and decoder for network messages Add encoder and decoder for network messages like netty Nov 1, 2019
0-haha pushed a commit to 0-haha/gnet that referenced this issue Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request proposal Proposal for this repo
Projects
None yet
Development

No branches or pull requests

2 participants