-
Notifications
You must be signed in to change notification settings - Fork 144
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
希望作者增加包尾来分割信息这功能 #1
Comments
能具体说下吗,我没理解你的意思,通过packagefactory来完成包分割 |
例如:接受过来的每个数据包的结尾都是这样的{"productId": "1","isJuan": "0","type": "2","sl": "1"}(end) ,就是设置好包尾之后以(end)这个为标记分割数据包。 |
有时间弄个util类来实现 |
其实现在这样把解析留给应用层更灵活些, |
@typ0520 谢谢,在看你的源码,还望你不要弃坑 之前一直想实现rx+socket,无奈能力有限,弄出来很多坑 |
会一直维护的,我们自己也在用^_^ |
希望作者能提供直接打包好的jar,提供下载jar的地方均不可用,自己打包发现很多jar包不太好找 |
有考虑不限制cmd, packetId吗?就是有原生通信能力即可。 |
解决的问题不一样;你说的这个场景把tcp模块去掉一些代码就可以用了 |
学习了您的项目,好像没有对socke的半包和粘包做处理 |
分片的包可以通过继承AbstracFragmentRequestQueue做处理; 黏包这块仿照sample工程直接在PacketFactory自己做就行了,这样灵活性更大 |
getRemotePacket貌似只能处理完整包的情况,不完整包不好处理的呀。你能帮忙些个demo么,分别处理不完整包和黏包的情况。 |
No description provided.
The text was updated successfully, but these errors were encountered: