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

Function SendPing

library/cpp/netliba/v6/udp_client_server.cpp:665–675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

663 }
664
665 static void SendPing(TNetSocket& s, const sockaddr_in6& toAddress, int selfNetworkOrderPort) {
666 char pktBuf[UDP_PACKET_SIZE_FULL];
667 char* pktData = pktBuf + UDP_LOW_LEVEL_HEADER_SIZE;
668 if (NSan::MSanIsOn()) {
669 Zero(pktBuf);
670 }
671 Write(&pktData, (int)0);
672 Write(&pktData, (char)PING);
673 Write(&pktData, selfNetworkOrderPort);
674 s.SendTo(pktBuf, UDP_PACKET_SIZE_FULL, toAddress, FF_DONT_FRAG);
675 }
676
677 // not MTU discovery, just figure out IB address of the peer
678 static void SendFakePing(TNetSocket& s, const sockaddr_in6& toAddress, int selfNetworkOrderPort) {

Callers 1

SendDataMethod · 0.85

Calls 4

MSanIsOnFunction · 0.85
ZeroFunction · 0.85
WriteFunction · 0.70
SendToMethod · 0.45

Tested by

no test coverage detected