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

Method ProcessSystemPacket

library/cpp/netliba/v12/udp_host.cpp:1487–1509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1485 static void DumpConnection(const TConnection* connection);
1486
1487 bool TUdpHost::ProcessSystemPacket(const EUdpCmd cmd, const char* pktData, const char* pktEnd) {
1488 Y_ASSERT(IsSystemCmd(cmd));
1489 Y_ASSERT(pktData <= pktEnd);
1490
1491 switch (cmd) {
1492 case KILL: {
1493 if (ReadKill(pktData, pktEnd)) {
1494 fprintf(stderr, "CONNECTIONS DEBUG: %s\n\n\n", GetConnectionsDebug().c_str());
1495
1496 for (TConnections::const_iterator i = Connections.Begin(); i != Connections.End(); ++i) {
1497 DumpConnection(static_cast<TConnection*>(i->second.Get()));
1498 }
1499 abort();
1500 }
1501 Y_ASSERT(false);
1502 return false;
1503 }
1504 default:
1505 break;
1506 }
1507 Y_ASSERT(0 && "Not a system cmd!");
1508 return false;
1509 }
1510
1511 ///////////////////////////////////////////////////////////////////////////////
1512

Callers

nothing calls this directly

Calls 7

IsSystemCmdFunction · 0.85
ReadKillFunction · 0.85
DumpConnectionFunction · 0.85
c_strMethod · 0.45
BeginMethod · 0.45
EndMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected