trans: 1.basic trans logic. 2.ico res.

This commit is contained in:
2025-06-17 11:48:13 +08:00
parent 33b8a37719
commit 55b530d9f8
16 changed files with 236 additions and 17 deletions

View File

@@ -1,10 +1,12 @@
#ifndef PROTOCOL_H
#ifndef PROTOCOL_H
#define PROTOCOL_H
#include <QByteArray>
#include <QSharedPointer>
#include <QString>
constexpr quint32 CHUNK_BUF_SIZE = 1 * 1024 * 1024;
// It is specified here that the first 30 contents (inclusive) are
// used for communication with the server.
// Contents beyond 30 are only forwarded.
@@ -20,13 +22,14 @@ enum FrameBufferType : uint16_t {
FBT_CLI_ASK_HOME,
FBT_CLI_ANS_HOME,
FBT_CLI_REQ_SEND,
FBT_CLI_ANSREQ_SUCCESS,
FBT_CLI_ANSREQ_FAILED,
FBT_CLI_ANSSEND_SUCCESS,
FBT_CLI_ANSSEND_FAILED,
FBT_CLI_REQ_RECV,
FBT_CLI_ANSRECV_SUCCESS,
FBT_CLI_ANSRECV_FAILED,
FBT_CLI_FILETRANS,
FBT_CLI_TRANS_DONE
FBT_CLI_TRANS_DONE,
FBT_CLI_FILETRANS_FAILED
};
struct FrameBuffer {