process_task.h 562 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * process_task.h
  3. *
  4. * Created on: 2018.3.16
  5. * Author: zhulin
  6. */
  7. #ifndef __PROCESS_TASK_H__
  8. #define __PROCESS_TASK_H__
  9. //#include "log.h"
  10. //#include "protocal.h"
  11. //#include "comm.h"
  12. #include <unistd.h>
  13. #include <stdlib.h>
  14. #include <string>
  15. #include "task_request.h"
  16. using namespace std;
  17. #define STRCPY(d,s) do{ strncpy(d, s, sizeof(d)-1); d[sizeof(d)-1]=0; }while(0)
  18. #define TIMER_INTERVAL 86400
  19. #define MAX_PACKAGE_SIZE 1024*1024
  20. class ProcessTask
  21. {
  22. public:
  23. ProcessTask();
  24. virtual ~ProcessTask();
  25. virtual int Process(CTaskRequest *request);
  26. };
  27. #endif