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

建议开放自定义Tcp 消息解析。 #91

Open
kissIce opened this issue May 31, 2024 · 1 comment
Open

建议开放自定义Tcp 消息解析。 #91

kissIce opened this issue May 31, 2024 · 1 comment

Comments

@kissIce
Copy link

kissIce commented May 31, 2024

目前tcp板块的 messageHandler 是使用 Message 进行解析,问题是很多自定义协议并不一定按照小端模式,需要自定义解析。 然而自定义 rawMessageHandler的话,又无法使用 Server自带的 messageHandlers。 我的想法是server初始化的时候 使用装配模式设置 Message,没有设置的话就使用默认的 Message 进行解析。 或者 rawMessageHandler 加一个参数,将 server传进来, raw解析后成message后接着往下执行messageHandlers

@kissIce
Copy link
Author

kissIce commented May 31, 2024

image

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

1 participant