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

希望作者增加包尾来分割信息这功能 #1

Open
Zziv opened this issue Sep 30, 2017 · 13 comments
Open

希望作者增加包尾来分割信息这功能 #1

Zziv opened this issue Sep 30, 2017 · 13 comments

Comments

@Zziv
Copy link

Zziv commented Sep 30, 2017

No description provided.

@typ0520
Copy link
Owner

typ0520 commented Sep 30, 2017

能具体说下吗,我没理解你的意思,通过packagefactory来完成包分割

@Zziv
Copy link
Author

Zziv commented Sep 30, 2017

例如:接受过来的每个数据包的结尾都是这样的{"productId": "1","isJuan": "0","type": "2","sl": "1"}(end) ,就是设置好包尾之后以(end)这个为标记分割数据包。

建议参考:https://github.com/vilyever/AndroidSocketClient

@typ0520
Copy link
Owner

typ0520 commented Sep 30, 2017

有时间弄个util类来实现

@typ0520
Copy link
Owner

typ0520 commented Sep 30, 2017

其实现在这样把解析留给应用层更灵活些,

@Zziv
Copy link
Author

Zziv commented Sep 30, 2017

@typ0520 谢谢,在看你的源码,还望你不要弃坑 之前一直想实现rx+socket,无奈能力有限,弄出来很多坑

@typ0520
Copy link
Owner

typ0520 commented Sep 30, 2017

会一直维护的,我们自己也在用^_^

@jymcpp
Copy link

jymcpp commented Oct 19, 2017

希望作者能提供直接打包好的jar,提供下载jar的地方均不可用,自己打包发现很多jar包不太好找

@typ0520
Copy link
Owner

typ0520 commented Oct 19, 2017

https://jcenter.bintray.com/com/github/typ0520/ 从这个地址可以自己下

@fuhongwei041
Copy link

有考虑不限制cmd, packetId吗?就是有原生通信能力即可。

@typ0520
Copy link
Owner

typ0520 commented Nov 28, 2017

解决的问题不一样;你说的这个场景把tcp模块去掉一些代码就可以用了

@a0224
Copy link

a0224 commented Nov 29, 2017

学习了您的项目,好像没有对socke的半包和粘包做处理

@typ0520
Copy link
Owner

typ0520 commented Nov 29, 2017

分片的包可以通过继承AbstracFragmentRequestQueue做处理; 黏包这块仿照sample工程直接在PacketFactory自己做就行了,这样灵活性更大

@a0224
Copy link

a0224 commented Nov 29, 2017

getRemotePacket貌似只能处理完整包的情况,不完整包不好处理的呀。你能帮忙些个demo么,分别处理不完整包和黏包的情况。

Repository owner deleted a comment from katsavav Feb 5, 2024
Repository owner deleted a comment from katsavav Feb 5, 2024
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

5 participants