您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

protocol.h 515B

12345678910111213141516171819202122232425262728293031
  1. #ifndef RSPAMD_PROTOCOL_H
  2. #define RSPAMD_PROTOCOL_H
  3. #include "config.h"
  4. #define RSPAMD_FILTER_ERROR 1
  5. #define RSPAMD_NETWORK_ERROR 2
  6. #define RSPAMD_PROTOCOL_ERROR 3
  7. #define RSPAMD_LENGTH_ERROR 4
  8. struct worker_task;
  9. enum rspamd_protocol {
  10. SPAMC_PROTO,
  11. RSPAMC_PROTO,
  12. };
  13. enum rspamd_command {
  14. CMD_CHECK,
  15. CMD_SYMBOLS,
  16. CMD_REPORT,
  17. CMD_REPORT_IFSPAM,
  18. CMD_SKIP,
  19. CMD_PING,
  20. CMD_PROCESS,
  21. };
  22. int read_rspamd_input_line (struct worker_task *task, char *line);
  23. int write_reply (struct worker_task *task);
  24. #endif