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

Function SendIBOnlyPing

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

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

Source from the content-addressed store, hash-verified

625
626 // not MTU discovery, just figure out IB address of the peer
627 inline void SendIBOnlyPing(TUdpSocket& s, const TConnection* connection, const int selfNetworkOrderPort) {
628 char buf[PACKET_HEADERS_SIZE], *pktData = buf + UDP_LOW_LEVEL_HEADER_SIZE;
629
630 TOptionsVector opt;
631 WriteInConnectionPacketHeader(&pktData, PING, connection, &opt);
632 Write(&pktData, selfNetworkOrderPort);
633
634 const ui8 tos = 0;
635 CheckedSendTo(s, buf, pktData, connection->GetWinsockAddress(), connection->GetWinsockMyAddress(),
636 tos, FF_ALLOW_FRAG);
637 }
638
639 template <class TTPort>
640 inline bool ReadPing(const char* pktData, const char* pktEnd, TTPort* port) {

Callers 1

CheckMTUMethod · 0.85

Calls 3

CheckedSendToFunction · 0.85
WriteFunction · 0.70

Tested by

no test coverage detected