forgot if i changed anything
This commit is contained in:
parent
3a2cb8d449
commit
00f1bb953b
1 changed files with 10 additions and 2 deletions
|
@ -94,8 +94,16 @@ int sosc::ScapeConnection::Receive(Packet* packet, bool block) {
|
||||||
this->frameQueue.push(frame);
|
this->frameQueue.push(frame);
|
||||||
if(frame.IsFinal()) {
|
if(frame.IsFinal()) {
|
||||||
std::string pck;
|
std::string pck;
|
||||||
while(!this->frameQueue.empty())
|
while(!this->frameQueue.empty()) {
|
||||||
pck.
|
pck += this->frameQueue.front().GetBody();
|
||||||
|
this->frameQueue.pop();
|
||||||
|
}
|
||||||
|
|
||||||
|
if(packet->Parse(pck) == PCK_OK)
|
||||||
|
return PCK_OK;
|
||||||
|
else
|
||||||
|
return PCK_ERR;
|
||||||
|
|
||||||
} else
|
} else
|
||||||
return PCK_MORE;
|
return PCK_MORE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue