Giter Site home page Giter Site logo

Comments (2)

dakun666 avatar dakun666 commented on May 4, 2024

抱歉,我应该在头部去取包体的长度。已经解决了,再次感谢您的库

from oksocket.

xuuhaoo avatar xuuhaoo commented on May 4, 2024

是的.应该与服务器协商通讯协议时,在包头里返回内中中加上包体长度的定义,当然包头不一定只有包体长度这一个数据,包头可以包含很多数据,例如功能号, CRC 校验码,包体长度,时间戳等等.根据业务需求和场景自行定义,框架主要负责通讯,处理 socket 的粘拆包,通讯断线重连,心跳等机制.如有问题欢迎 issues

from oksocket.

Related Issues (20)

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.