mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
f217467699
@ -150,7 +150,7 @@ void WebSocketSplitter::onPayloadData(uint8_t *data, size_t len) {
|
|||||||
|
|
||||||
void WebSocketSplitter::encode(const WebSocketHeader &header,const Buffer::Ptr &buffer) {
|
void WebSocketSplitter::encode(const WebSocketHeader &header,const Buffer::Ptr &buffer) {
|
||||||
string ret;
|
string ret;
|
||||||
auto len = buffer ? buffer->size() : 0;
|
uint64_t len = buffer ? buffer->size() : 0;
|
||||||
uint8_t byte = header._fin << 7 | ((header._reserved & 0x07) << 4) | (header._opcode & 0x0F) ;
|
uint8_t byte = header._fin << 7 | ((header._reserved & 0x07) << 4) | (header._opcode & 0x0F) ;
|
||||||
ret.push_back(byte);
|
ret.push_back(byte);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user