fertao
2025-08-02 3465c52e01909d9879c480019b945fd6d42ae6a4
Server/¸¶ÁÖÌÎ/code/vscode/tiankai/tiankai/SaveFile.h
@@ -5,14 +5,19 @@
#include <iomanip>
#include <sstream>
#include "struct_data.h"
#define BUF_MAX_SIZE (8 * 1024)
#define FILE_PATH "./"
#define BUF_MAX_SIZE (8 * 1024)      //   å›ºå®šåŒ…大小8k
#define FILE_PATH "./"      //   åˆä»£ç æœ€å¥½ä¿®æ”¹
class SaveFile
{
public:
   SaveFile();
   ~SaveFile();
   /*
      if(Head->type == UPLOAD_REQ) å°±è¿›æ¥è°ƒç”¨fileop()函数就可以了,其他函数不用调。
   */
   int fileop(char* str, int len);
private:
   int fileHead(char* str, int len);
   int fileData(char* str, int len);
   int fileFin(char* str, int len);