Comments (13)
https://jcenter.bintray.com/com/github/typ0520/ 从这个地址可以自己下
from bizsocket.
能具体说下吗,我没理解你的意思,通过packagefactory来完成包分割
from bizsocket.
例如:接受过来的每个数据包的结尾都是这样的{"productId": "1","isJuan": "0","type": "2","sl": "1"}(end) ,就是设置好包尾之后以(end)这个为标记分割数据包。
建议参考:https://github.com/vilyever/AndroidSocketClient
from bizsocket.
有时间弄个util类来实现
from bizsocket.
其实现在这样把解析留给应用层更灵活些,
from bizsocket.
@typ0520 谢谢,在看你的源码,还望你不要弃坑 之前一直想实现rx+socket,无奈能力有限,弄出来很多坑
from bizsocket.
会一直维护的,我们自己也在用^_^
from bizsocket.
希望作者能提供直接打包好的jar,提供下载jar的地方均不可用,自己打包发现很多jar包不太好找
from bizsocket.
有考虑不限制cmd, packetId吗?就是有原生通信能力即可。
from bizsocket.
解决的问题不一样;你说的这个场景把tcp模块去掉一些代码就可以用了
from bizsocket.
学习了您的项目,好像没有对socke的半包和粘包做处理
from bizsocket.
分片的包可以通过继承AbstracFragmentRequestQueue做处理; 黏包这块仿照sample工程直接在PacketFactory自己做就行了,这样灵活性更大
from bizsocket.
getRemotePacket貌似只能处理完整包的情况,不完整包不好处理的呀。你能帮忙些个demo么,分别处理不完整包和黏包的情况。
from bizsocket.
Related Issues (8)
- 有没有android版本的demo HOT 5
- client一直超时 HOT 5
- 使用Json格式发送的时候一直没有收到数据 HOT 5
- 找不到依赖呀 HOT 1
- 此project关联的东西有点多 HOT 1
- 在小米MIX2上会报错
- 是不是没上传maven仓库啊? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bizsocket.