Giter Site home page Giter Site logo

Comments (5)

Crawler995 avatar Crawler995 commented on May 31, 2024

@daofeng2015 谢谢你的意见!我自己其实不太熟悉docker,现在学业也挺重,有时间一定会考虑!

from douyubarrage-pro.

dfaofeng avatar dfaofeng commented on May 31, 2024

再问一个问题,如果返回一个消息中有多种消息混合在一起的话,怎么知道第二段弹幕的请求头呢 怎么拆开呢?
image

from douyubarrage-pro.

Crawler995 avatar Crawler995 commented on May 31, 2024

@daofeng2015 斗鱼消息协议中讲到了数据包头部的结构 其中有一个长度字段 你先把第一个消息的头部解析出来 拿到第一条消息的长度 指针偏移这个值以后就刚好是第二条消息的开头

from douyubarrage-pro.

dfaofeng avatar dfaofeng commented on May 31, 2024

@daofeng2015 斗鱼消息协议中讲到了数据包头部的结构 其中有一个长度字段 你先把第一个消息的头部解析出来 拿到第一条消息的长度 指针偏移这个值以后就刚好是第二条消息的开头

关键就是头部解析不会啊

from douyubarrage-pro.

Crawler995 avatar Crawler995 commented on May 31, 2024

@daofeng2015 使用各种语言中的二进制操作模块 比如nodejs里面的Buffer等等 也可以参考下我的源码

from douyubarrage-pro.

Related Issues (17)

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.