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

支持自定义解封包 #46

Closed
laolaozhang opened this issue Jun 9, 2018 · 1 comment
Closed

支持自定义解封包 #46

laolaozhang opened this issue Jun 9, 2018 · 1 comment

Comments

@laolaozhang
Copy link

laolaozhang commented Jun 9, 2018

func SendLTVPacket(writer io.Writer, ctx cellnet.ContextSet, data interface{}) error {

支持自定义解封包
或者
支持包里面带metadata

作用:分布式服务之间通信用

@davyxu
Copy link
Owner

davyxu commented Jun 9, 2018

peer只是定义的收包流程,整个processor都可以被自定义的, 只需要注册到系统就可以,参考procreg.go以及相应的引用代码就直到怎么定制流程了。util里的函数只是helper,有很强的定制需求可以用自己的。

@davyxu davyxu closed this as completed Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants