MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / sendQueuedData

Method sendQueuedData

src/openrct2/network/NetworkConnection.cpp:217–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215 }
216
217 void Connection::sendQueuedData()
218 {
219 if (_outboundBuffer.empty())
220 {
221 return;
222 }
223
224 const auto bytesSent = socket->SendData(_outboundBuffer.data(), _outboundBuffer.size());
225
226 if (bytesSent > 0)
227 {
228 _outboundBuffer.erase(_outboundBuffer.begin(), _outboundBuffer.begin() + bytesSent);
229 }
230 }
231
232 bool Connection::receivedDataRecently() const noexcept
233 {

Callers 2

FlushMethod · 0.80

Calls 5

emptyMethod · 0.45
SendDataMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected