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

Method HandleClientUnknownPacket

Tools/ProtoProxy/Connection.cpp:1253–1263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1251
1252
1253bool cConnection::HandleClientUnknownPacket(UInt32 a_PacketType, UInt32 a_PacketLen, UInt32 a_PacketReadSoFar)
1254{
1255 AString Data;
1256 if (!m_ClientBuffer.ReadString(Data, a_PacketLen - a_PacketReadSoFar))
1257 {
1258 return false;
1259 }
1260 DataLog(Data.data(), Data.size(), "****************** Unknown packet 0x%x from the client; relaying and ignoring", a_PacketType);
1261 COPY_TO_SERVER();
1262 return true;
1263}
1264
1265
1266

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
ReadStringMethod · 0.45

Tested by

no test coverage detected