MCPcopy Create free account
hub / github.com/catboost/catboost / HasAllPackets

Function HasAllPackets

library/cpp/netliba/v12/udp_host.cpp:1016–1024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1014 ///////////////////////////////////////////////////////////////////////////////
1015
1016 static bool HasAllPackets(const TUdpInTransfer& res) {
1017 if (!res.HasLastPacket)
1018 return false;
1019 for (int i = res.GetPacketCount() - 1; i >= 0; --i) {
1020 if (!res.GetPacket(i))
1021 return false;
1022 }
1023 return true;
1024 }
1025
1026 void TUdpHost::RecvCycle() {
1027 NHPTimer::STime now;

Callers 1

ProcessDataPacketMethod · 0.70

Calls 2

GetPacketCountMethod · 0.45
GetPacketMethod · 0.45

Tested by

no test coverage detected