mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
Use congestion control for client sends, too.
This commit is contained in:
parent
b6570dc4ee
commit
1b890a9e48
1 changed files with 6 additions and 3 deletions
|
@ -39,9 +39,12 @@ Endpoint::~Endpoint() {
|
|||
}
|
||||
|
||||
void Endpoint::update() {
|
||||
Bitstream& out = _sequencer.startPacket();
|
||||
writeUpdateMessage(out);
|
||||
_sequencer.endPacket();
|
||||
int packetsToSend = _sequencer.notePacketGroup();
|
||||
for (int i = 0; i < packetsToSend; i++) {
|
||||
Bitstream& out = _sequencer.startPacket();
|
||||
writeUpdateMessage(out);
|
||||
_sequencer.endPacket();
|
||||
}
|
||||
}
|
||||
|
||||
int Endpoint::parseData(const QByteArray& packet) {
|
||||
|
|
Loading…
Reference in a new issue