mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
ntcore: Implement RPC_RESPONSE reading.
Change-Id: I80b678fb5fccc0ef21b6c5b9a89e49d18702e8a0
This commit is contained in:
@@ -194,6 +194,19 @@ MessageReader::Run()
|
||||
if (!Read(size)) return false;
|
||||
}
|
||||
case NT_MSG_RPC_RESPONSE:
|
||||
{
|
||||
if (m_proto_rev < 0x0300u)
|
||||
{
|
||||
m_error = "received RPC_RESPONSE in protocol < 3.0";
|
||||
return false;
|
||||
}
|
||||
unsigned int id, uid;
|
||||
if (!Read16(&id)) return false;
|
||||
if (!Read16(&uid)) return false;
|
||||
unsigned long size;
|
||||
if (!ReadULEB128(&size)) return false;
|
||||
if (!Read(size)) return false;
|
||||
}
|
||||
default:
|
||||
m_error = "unrecognized message type";
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user