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

Method PacketError

src/ClientHandle.cpp:2625–2630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2623
2624
2625void cClientHandle::PacketError(unsigned char a_PacketType)
2626{
2627 LOGERROR("Protocol error while parsing packet type 0x%02x; disconnecting client \"%s\"", a_PacketType, m_Username.c_str());
2628 SendDisconnect("Protocol error");
2629 Destroy();
2630}
2631
2632
2633

Callers 2

DataReceivedMethod · 0.80
AddReceivedDataMethod · 0.80

Calls 2

LOGERRORFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected