Coder Social home page Coder Social logo

Comments (13)

typ0520 avatar typ0520 commented on May 21, 2024 1

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

from bizsocket.

typ0520 avatar typ0520 commented on May 21, 2024

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

from bizsocket.

Zziv avatar Zziv commented on May 21, 2024

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

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

from bizsocket.

typ0520 avatar typ0520 commented on May 21, 2024

有时间弄个util类来实现

from bizsocket.

typ0520 avatar typ0520 commented on May 21, 2024

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

from bizsocket.

Zziv avatar Zziv commented on May 21, 2024

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

from bizsocket.

typ0520 avatar typ0520 commented on May 21, 2024

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

from bizsocket.

jymcpp avatar jymcpp commented on May 21, 2024

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

from bizsocket.

fuhongwei041 avatar fuhongwei041 commented on May 21, 2024

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

from bizsocket.

typ0520 avatar typ0520 commented on May 21, 2024

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

from bizsocket.

a0224 avatar a0224 commented on May 21, 2024

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

from bizsocket.

typ0520 avatar typ0520 commented on May 21, 2024

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

from bizsocket.

a0224 avatar a0224 commented on May 21, 2024

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

from bizsocket.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.