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

Function WriteTransferPacketHeader

library/cpp/netliba/v12/udp_host_protocol.h:489–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487 ///////////////////////////////////////////////////////////////////////////////
488
489 inline void WriteTransferPacketHeader(char** buf, const EUdpCmd cmd, const TConnection* connection, ui64 transferId, TOptionsVector* opt) {
490 Y_ASSERT(IsTransferCmd(cmd));
491 Y_ASSERT(!connection->GetGuid().IsEmpty() && transferId);
492 const ui32 transferLower = opt->PacketOpt.EncodeTransferId(transferId);
493
494 WriteInConnectionPacketHeader(buf, cmd, connection, opt);
495 Write(buf, transferLower);
496 }
497
498 ///////////////////////////////////////////////////////////////////////////////
499

Callers 3

WriteDataPacketHeaderFunction · 0.85
WriteAcksHeaderFunction · 0.85
SendCancelTransferFunction · 0.85

Calls 5

IsTransferCmdFunction · 0.85
EncodeTransferIdMethod · 0.80
WriteFunction · 0.70
IsEmptyMethod · 0.45

Tested by

no test coverage detected