mirror of
https://github.com/fumiama/simple-dict.git
synced 2026-06-11 05:30:28 +08:00
优化
This commit is contained in:
5
server.h
5
server.h
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user