HostHandler: senders for the AA tranche messages
tests / build-and-test (push) Failing after 34s

A host couldn't drive the new messages through the HostHandler class —
only the server side knew how to dispatch them.  Adds six new senders
plus a unit test that walks each through a real loopback connection:

  * send_legacy_remote_command  -> S2F21
  * send_event_report_request   -> S6F15
  * send_individual_report_request -> S6F19
  * send_annotated_report_request  -> S6F21
  * send_pp_load_inquire        -> S7F1
  * send_delete_pp              -> S7F17

Suite: 296 cases / 1571 assertions.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-06-09 01:20:23 +02:00
parent 7c28e2589c
commit 29f646c7ca
3 changed files with 106 additions and 0 deletions
+29
View File
@@ -153,6 +153,25 @@ void HostHandler::send_enhanced_remote_command(
std::move(cb));
}
void HostHandler::send_legacy_remote_command(const std::string& rcmd,
ReplyHandler cb) {
send_request(s2f21_remote_command(rcmd), std::move(cb));
}
// ---- Host-initiated event/report queries --------------------------------
void HostHandler::send_event_report_request(uint32_t ceid, ReplyHandler cb) {
send_request(s6f15_event_report_request(ceid), std::move(cb));
}
void HostHandler::send_individual_report_request(uint32_t rptid, ReplyHandler cb) {
send_request(s6f19_individual_report_request(rptid), std::move(cb));
}
void HostHandler::send_annotated_report_request(uint32_t rptid, ReplyHandler cb) {
send_request(s6f21_annotated_report_request(rptid), std::move(cb));
}
// ---- Alarm management (B3) ----------------------------------------------
void HostHandler::send_enable_alarm(uint32_t alid, bool enable, ReplyHandler cb) {
@@ -194,6 +213,16 @@ void HostHandler::send_request_pp(const std::string& ppid, ReplyHandler cb) {
send_request(s7f5_process_program_request(ppid), std::move(cb));
}
void HostHandler::send_pp_load_inquire(const std::string& ppid, uint32_t length,
ReplyHandler cb) {
send_request(s7f1_pp_load_inquire(ppid, length), std::move(cb));
}
void HostHandler::send_delete_pp(const std::vector<std::string>& ppids,
ReplyHandler cb) {
send_request(s7f17_delete_pp_send(ppids), std::move(cb));
}
// ---- Spool (B3) ---------------------------------------------------------
void HostHandler::send_request_spool(SpoolRequestCode code, ReplyHandler cb) {