1
0
mirror of https://github.com/fumiama/simple-dict.git synced 2026-06-11 05:30:28 +08:00
This commit is contained in:
源文雨
2022-10-27 13:47:15 +08:00
parent deecbda91c
commit b7184d4dbf
2 changed files with 127 additions and 57 deletions

View File

@@ -10,9 +10,12 @@
#define MAXWAITSEC 8
#endif
#ifndef DICTPOOLBIT
// DICTPOOLBIT must be lower than 4*8 = 32
// DICTPOOLBIT must be lower than 4*8 = 32
#define DICTPOOLBIT 16
#endif
#ifndef THREAD_TIMER_T_SZ
#define THREAD_TIMER_T_SZ 1024
#endif
enum server_cmd_t {CMDGET, CMDCAT, CMDMD5, CMDACK, CMDEND, CMDSET, CMDDEL, CMDDAT};
enum server_ack_t {ACKNONE=0b0000011, ACKSUCC=0b0010011, ACKDATA=0b0100011, ACKNULL=0b0110011, ACKNEQU=0b1000011, ACKERRO=0b1010011};