36 #ifndef PROTOCOL_BINARY_H
37 #define PROTOCOL_BINARY_H
40 #include <memcached/vbucket.h>
63 PROTOCOL_BINARY_REQ = 0x80,
64 PROTOCOL_BINARY_RES = 0x81
72 PROTOCOL_BINARY_RESPONSE_SUCCESS = 0x00,
73 PROTOCOL_BINARY_RESPONSE_KEY_ENOENT = 0x01,
74 PROTOCOL_BINARY_RESPONSE_KEY_EEXISTS = 0x02,
75 PROTOCOL_BINARY_RESPONSE_E2BIG = 0x03,
76 PROTOCOL_BINARY_RESPONSE_EINVAL = 0x04,
77 PROTOCOL_BINARY_RESPONSE_NOT_STORED = 0x05,
78 PROTOCOL_BINARY_RESPONSE_DELTA_BADVAL = 0x06,
79 PROTOCOL_BINARY_RESPONSE_NOT_MY_VBUCKET = 0x07,
80 PROTOCOL_BINARY_RESPONSE_AUTH_ERROR = 0x20,
81 PROTOCOL_BINARY_RESPONSE_AUTH_CONTINUE = 0x21,
82 PROTOCOL_BINARY_RESPONSE_UNKNOWN_COMMAND = 0x81,
83 PROTOCOL_BINARY_RESPONSE_ENOMEM = 0x82,
84 PROTOCOL_BINARY_RESPONSE_NOT_SUPPORTED = 0x83,
85 PROTOCOL_BINARY_RESPONSE_EINTERNAL = 0x84,
86 PROTOCOL_BINARY_RESPONSE_EBUSY = 0x85,
87 PROTOCOL_BINARY_RESPONSE_ETMPFAIL = 0x86
95 PROTOCOL_BINARY_CMD_GET = 0x00,
96 PROTOCOL_BINARY_CMD_SET = 0x01,
97 PROTOCOL_BINARY_CMD_ADD = 0x02,
98 PROTOCOL_BINARY_CMD_REPLACE = 0x03,
99 PROTOCOL_BINARY_CMD_DELETE = 0x04,
100 PROTOCOL_BINARY_CMD_INCREMENT = 0x05,
101 PROTOCOL_BINARY_CMD_DECREMENT = 0x06,
102 PROTOCOL_BINARY_CMD_QUIT = 0x07,
103 PROTOCOL_BINARY_CMD_FLUSH = 0x08,
104 PROTOCOL_BINARY_CMD_GETQ = 0x09,
105 PROTOCOL_BINARY_CMD_NOOP = 0x0a,
106 PROTOCOL_BINARY_CMD_VERSION = 0x0b,
107 PROTOCOL_BINARY_CMD_GETK = 0x0c,
108 PROTOCOL_BINARY_CMD_GETKQ = 0x0d,
109 PROTOCOL_BINARY_CMD_APPEND = 0x0e,
110 PROTOCOL_BINARY_CMD_PREPEND = 0x0f,
111 PROTOCOL_BINARY_CMD_STAT = 0x10,
112 PROTOCOL_BINARY_CMD_SETQ = 0x11,
113 PROTOCOL_BINARY_CMD_ADDQ = 0x12,
114 PROTOCOL_BINARY_CMD_REPLACEQ = 0x13,
115 PROTOCOL_BINARY_CMD_DELETEQ = 0x14,
116 PROTOCOL_BINARY_CMD_INCREMENTQ = 0x15,
117 PROTOCOL_BINARY_CMD_DECREMENTQ = 0x16,
118 PROTOCOL_BINARY_CMD_QUITQ = 0x17,
119 PROTOCOL_BINARY_CMD_FLUSHQ = 0x18,
120 PROTOCOL_BINARY_CMD_APPENDQ = 0x19,
121 PROTOCOL_BINARY_CMD_PREPENDQ = 0x1a,
122 PROTOCOL_BINARY_CMD_VERBOSITY = 0x1b,
123 PROTOCOL_BINARY_CMD_TOUCH = 0x1c,
124 PROTOCOL_BINARY_CMD_GAT = 0x1d,
125 PROTOCOL_BINARY_CMD_GATQ = 0x1e,
127 PROTOCOL_BINARY_CMD_SASL_LIST_MECHS = 0x20,
128 PROTOCOL_BINARY_CMD_SASL_AUTH = 0x21,
129 PROTOCOL_BINARY_CMD_SASL_STEP = 0x22,
135 PROTOCOL_BINARY_CMD_RGET = 0x30,
136 PROTOCOL_BINARY_CMD_RSET = 0x31,
137 PROTOCOL_BINARY_CMD_RSETQ = 0x32,
138 PROTOCOL_BINARY_CMD_RAPPEND = 0x33,
139 PROTOCOL_BINARY_CMD_RAPPENDQ = 0x34,
140 PROTOCOL_BINARY_CMD_RPREPEND = 0x35,
141 PROTOCOL_BINARY_CMD_RPREPENDQ = 0x36,
142 PROTOCOL_BINARY_CMD_RDELETE = 0x37,
143 PROTOCOL_BINARY_CMD_RDELETEQ = 0x38,
144 PROTOCOL_BINARY_CMD_RINCR = 0x39,
145 PROTOCOL_BINARY_CMD_RINCRQ = 0x3a,
146 PROTOCOL_BINARY_CMD_RDECR = 0x3b,
147 PROTOCOL_BINARY_CMD_RDECRQ = 0x3c,
151 PROTOCOL_BINARY_CMD_SET_VBUCKET = 0x3d,
152 PROTOCOL_BINARY_CMD_GET_VBUCKET = 0x3e,
153 PROTOCOL_BINARY_CMD_DEL_VBUCKET = 0x3f,
157 PROTOCOL_BINARY_CMD_TAP_CONNECT = 0x40,
158 PROTOCOL_BINARY_CMD_TAP_MUTATION = 0x41,
159 PROTOCOL_BINARY_CMD_TAP_DELETE = 0x42,
160 PROTOCOL_BINARY_CMD_TAP_FLUSH = 0x43,
161 PROTOCOL_BINARY_CMD_TAP_OPAQUE = 0x44,
162 PROTOCOL_BINARY_CMD_TAP_VBUCKET_SET = 0x45,
163 PROTOCOL_BINARY_CMD_TAP_CHECKPOINT_START = 0x46,
164 PROTOCOL_BINARY_CMD_TAP_CHECKPOINT_END = 0x47,
167 PROTOCOL_BINARY_CMD_LAST_RESERVED = 0x8f,
170 PROTOCOL_BINARY_CMD_SCRUB = 0xf0
178 PROTOCOL_BINARY_RAW_BYTES = 0x00
496 uint32_t max_results;
555 #define TAP_CONNECT_FLAG_BACKFILL 0x01
561 #define TAP_CONNECT_FLAG_DUMP 0x02
568 #define TAP_CONNECT_FLAG_LIST_VBUCKETS 0x04
573 #define TAP_CONNECT_FLAG_TAKEOVER_VBUCKETS 0x08
577 #define TAP_CONNECT_SUPPORT_ACK 0x10
584 #define TAP_CONNECT_REQUEST_KEYS_ONLY 0x20
591 #define TAP_CONNECT_CHECKPOINT 0x40
596 #define TAP_CONNECT_REGISTERED_CLIENT 0x80
607 uint16_t enginespecific_length;
616 #define TAP_FLAG_ACK 0x01
620 #define TAP_FLAG_NO_VALUE 0x02
641 uint16_t enginespecific_length;
682 vbucket_state_t state;
712 vbucket_state_t state;