MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / LastMsgAgeReported

Method LastMsgAgeReported

engine/Poseidon/Network/NetTransportNet.cpp:1536–1539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1534 packet = (toSent > maxGuaranteedPayload) ? maxGuaranteedPayload : toSent;
1535 toSent -= packet;
1536 msg = NetMessagePool::pool()->newMessage(packet, channel);
1537 if (!msg)
1538 {
1539 leaveSnd();
1540 return false;
1541 }
1542 msg->setFlags(MSG_ALL_FLAGS, fl | (toSent ? 0 : MSG_CLOSING_FLAG));

Callers 1

OnSimulateMethod · 0.80

Calls 1

getSystemTimeFunction · 0.85

Tested by

no test coverage detected