| 1520 | |
| 1521 | |
| 1522 | int 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 |
nothing calls this directly
no test coverage detected