From cf354448c631302367af8152d4a3fd0ba20afcb6 Mon Sep 17 00:00:00 2001 From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com> Date: 星期五, 01 八月 2025 11:32:28 +0800 Subject: [PATCH] 1.Spooled Data功能实现; 2.Request spooled data消息响应,EAP模拟测试; --- SourceCode/Bond/EAPSimulator/CHsmsActive.h | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/SourceCode/Bond/EAPSimulator/CHsmsActive.h b/SourceCode/Bond/EAPSimulator/CHsmsActive.h index c8bcbeb..7a93948 100644 --- a/SourceCode/Bond/EAPSimulator/CHsmsActive.h +++ b/SourceCode/Bond/EAPSimulator/CHsmsActive.h @@ -2,6 +2,9 @@ #include <string> #include <vector> #include <map> +#include <set> +#include "CCollectionEvent.h" + typedef std::function<void(void* pFrom, ACTIVESTATE state)> STATECHANGED; typedef struct _ACTIVEListener @@ -48,6 +51,16 @@ // Define reports int hsmsDefineReports(std::map<unsigned int, std::vector<unsigned int>>& mapReport); + // Line Event Report + int hsmsLinkEventReport(std::map<unsigned int, std::vector<unsigned int>>& mapEvent); + + // Configure Spooling + int hsmsConfigureSpooling(std::map<unsigned int, std::set<unsigned int>>& spoolingConfig); + + // 发送或清空缓存的消息 + int hsmsTransmitSpooledData(); + int hsmsPurgeSpooledData(); + // 通过的reply函数 void replyAck(int s, int f, unsigned int systemBytes, BYTE ack, const char* pszAckName); -- Gitblit v1.9.3