heartbeat: add basic code.

This commit is contained in:
2025-06-25 17:06:30 +08:00
parent 06bf31e8bd
commit c7b15694b9
5 changed files with 138 additions and 4 deletions

View File

@@ -14,10 +14,13 @@ constexpr quint32 CHUNK_BUF_SIZE = 1 * 1024 * 1024;
// Contents beyond 30 are only forwarded.
enum FrameBufferType : uint16_t {
FBT_NONE = 0,
FBT_SER_MSG_HEARTBEAT,
FBT_SER_MSG_ASKCLIENTS,
FBT_SER_MSG_YOURID,
FBT_SER_MSG_RESPONSE,
FBT_SER_MSG_FORWARD_FAILED,
FBT_SER_MSG_JUDGE_OTHER_ALIVE,
FBT_SER_MSG_OFFLINE,
FBT_CLI_BIN_FILEDATA = 31,
FBT_CLI_MSG_COMMUNICATE,
FBT_CLI_ASK_DIRFILE,