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

能够添加dockfile支持呢 #4

Open
dfaofeng opened this issue May 2, 2020 · 5 comments
Open

能够添加dockfile支持呢 #4

dfaofeng opened this issue May 2, 2020 · 5 comments

Comments

@dfaofeng
Copy link

dfaofeng commented May 2, 2020

一步步部署很有可能出现问题

@Crawler995
Copy link
Owner

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

@dfaofeng
Copy link
Author

dfaofeng commented May 11, 2020

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

@Crawler995
Copy link
Owner

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

@dfaofeng
Copy link
Author

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

关键就是头部解析不会啊

@Crawler995
Copy link
Owner

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

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

2 participants