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

Method ParsePluginMessage

src/Protocol/Protocol125.cpp:1522–1538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1520
1521
1522int cProtocol125::ParsePluginMessage(void)
1523{
1524 HANDLE_PACKET_READ(ReadBEUTF16String16, AString, ChannelName);
1525 HANDLE_PACKET_READ(ReadBEShort, short, Length);
1526 AString Data;
1527 if (!m_ReceivedData.ReadString(Data, (size_t)Length))
1528 {
1529 m_ReceivedData.CheckValid();
1530 return PARSE_INCOMPLETE;
1531 }
1532 m_ReceivedData.CheckValid();
1533
1534 // TODO: Process the data
1535 LOGD("Received %d bytes of plugin data on channel \"%s\".", Length, ChannelName.c_str());
1536
1537 return PARSE_OK;
1538}
1539
1540
1541

Callers

nothing calls this directly

Calls 3

CheckValidMethod · 0.80
c_strMethod · 0.80
ReadStringMethod · 0.45

Tested by

no test coverage detected