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

Method SendEmptyPacket

library/cpp/netliba/v12/net_test.cpp:39–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 }
38
39 void TConnectedSocket::SendEmptyPacket() {
40 TIoVec v;
41 Zero(v);
42
43 // darwin ignores packets with msg_iovlen == 0, also windows implementation uses sendto of first iovec.
44 TMsgHdr hdr;
45 Zero(hdr);
46 hdr.msg_iov = &v;
47 hdr.msg_iovlen = 1;
48
49 S->SendMsg(&hdr, 0, FF_ALLOW_FRAG); // sends empty packet to connected address
50 }
51
52 bool TConnectedSocket::IsHostUnreachable() {
53#ifdef _win_

Callers 1

TestMethod · 0.45

Calls 2

ZeroFunction · 0.85
SendMsgMethod · 0.80

Tested by

no test coverage detected