This repository has been archived on 2025-06-17. You can view files and clone it, but cannot push or open issues or pull requests.
RelayFile/Protocol/Communicate.h

24 lines
395 B
C
Raw Normal View History

2025-05-05 23:22:43 +08:00
#ifndef COMMUNICATE_H
#define COMMUNICATE_H
2025-05-10 01:25:02 +08:00
#include <Util.h>
struct FrameBuffer {
~FrameBuffer();
std::string fid;
std::string tid;
char* data{};
int len{};
};
2025-05-05 23:22:43 +08:00
class Communicate
{
public:
Communicate();
2025-05-10 01:25:02 +08:00
public:
static FrameBuffer* ParseBuffer(MutBuffer& buffer);
static bool PackBuffer(FrameBuffer* frame, char** buf, int& len);
2025-05-05 23:22:43 +08:00
};
#endif // COMMUNICATE_H