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

Function GetPacketSize

library/cpp/netliba/v6/udp_http.cpp:28–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 static std::atomic<double> HeartbeatTimeout = 0.0;
27
28 static int GetPacketSize(TRequest* req) {
29 if (req && req->Data.Get())
30 return req->Data->GetSize();
31 return 0;
32 }
33
34 static bool IsLocalFast(const TUdpAddress& addr) {
35 if (addr.IsIPv4()) {

Callers 4

AddRequestMethod · 0.85
AddResponseMethod · 0.85
GetRequestMethod · 0.85
GetResponseMethod · 0.85

Calls 2

GetMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected