MCPcopy Create free account
hub / github.com/cuberite/cuberite / PacketUnknown

Method PacketUnknown

src/ClientHandle.cpp:2611–2619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2609
2610
2611void cClientHandle::PacketUnknown(UInt32 a_PacketType)
2612{
2613 LOGERROR("Unknown packet type 0x%x from client \"%s\" @ %s", a_PacketType, m_Username.c_str(), m_IPString.c_str());
2614
2615 AString Reason;
2616 Printf(Reason, "Unknown [C->S] PacketType: 0x%x", a_PacketType);
2617 SendDisconnect(Reason);
2618 Destroy();
2619}
2620
2621
2622

Callers 2

DataReceivedMethod · 0.80
HandlePacketMethod · 0.80

Calls 3

LOGERRORFunction · 0.85
PrintfFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected