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

Function SendFakePing

library/cpp/netliba/v6/udp_client_server.cpp:678–685  ·  view source on GitHub ↗

not MTU discovery, just figure out IB address of the peer

Source from the content-addressed store, hash-verified

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) {
679 char buf[100];
680 char* pktData = buf + UDP_LOW_LEVEL_HEADER_SIZE;
681 Write(&pktData, (int)0);
682 Write(&pktData, (char)PING);
683 Write(&pktData, selfNetworkOrderPort);
684 s.SendTo(buf, (int)(pktData - buf), toAddress, FF_ALLOW_FRAG);
685 }
686
687 void TUdpHost::SendData(TList<TTransferKey>* order, float deltaT1, bool needCheckAlive) {
688 for (TList<TTransferKey>::iterator z = order->begin(); z != order->end();) {

Callers 1

SendDataMethod · 0.85

Calls 2

WriteFunction · 0.70
SendToMethod · 0.45

Tested by

no test coverage detected