Home
last modified time | relevance | path

Searched refs:response (Results 1 – 17 of 17) sorted by relevance

/memcached-1.6.32/
Dtestapp.c1040 if (!safe_recv(response, sizeof(*response))) { in safe_recv_packet()
1043 response->message.header.response.keylen = ntohs(response->message.header.response.keylen); in safe_recv_packet()
1044 response->message.header.response.status = ntohs(response->message.header.response.status); in safe_recv_packet()
1045 response->message.header.response.bodylen = ntohl(response->message.header.response.bodylen); in safe_recv_packet()
1058 len += response->message.header.response.bodylen; in safe_recv_packet()
1235 assert(response->message.header.response.opcode == cmd); in validate_response_header()
1237 assert(response->message.header.response.status == status); in validate_response_header()
1266 assert(response->message.header.response.cas != 0); in validate_response_header()
1275 assert(response->message.header.response.cas == 0); in validate_response_header()
1322 assert(response->message.header.response.cas == 0); in validate_response_header()
[all …]
Dproto_bin.c142 header->response.magic = (uint8_t)PROTOCOL_BINARY_RES; in add_bin_header()
143 header->response.opcode = c->binary_header.request.opcode; in add_bin_header()
144 header->response.keylen = (uint16_t)htons(key_len); in add_bin_header()
146 header->response.extlen = (uint8_t)hdr_len; in add_bin_header()
147 header->response.datatype = (uint8_t)PROTOCOL_BINARY_RAW_BYTES; in add_bin_header()
148 header->response.status = (uint16_t)htons(err); in add_bin_header()
150 header->response.bodylen = htonl(body_len); in add_bin_header()
151 header->response.opaque = c->opaque; in add_bin_header()
152 header->response.cas = htonll(c->cas); in add_bin_header()
166 resp->wbytes = sizeof(header->response); in add_bin_header()
[all …]
Dmemcached_dtrace.d182 probe process__command__end(int connid, const void *response, int size);
Dprotocol_binary.h181 } response; member
Dstorage.c194 uint32_t body_len = ntohl(header->response.bodylen); in _storage_get_item_cb()
195 uint8_t hdr_len = header->response.extlen; in _storage_get_item_cb()
198 header->response.extlen = 0; in _storage_get_item_cb()
199 header->response.status = (uint16_t)htons(PROTOCOL_BINARY_RESPONSE_KEY_ENOENT); in _storage_get_item_cb()
200 header->response.bodylen = htonl(body_len); in _storage_get_item_cb()
Dmemcached.c1319 .response.magic = (uint8_t)PROTOCOL_BINARY_RES, in append_bin_stats()
1320 .response.opcode = PROTOCOL_BINARY_CMD_STAT, in append_bin_stats()
1321 .response.keylen = (uint16_t)htons(klen), in append_bin_stats()
1322 .response.datatype = (uint8_t)PROTOCOL_BINARY_RAW_BYTES, in append_bin_stats()
1323 .response.bodylen = htonl(bodylen), in append_bin_stats()
1324 .response.opaque = c->opaque in append_bin_stats()
1327 memcpy(buf, header.bytes, sizeof(header.response)); in append_bin_stats()
1328 buf += sizeof(header.response); in append_bin_stats()
1339 c->stats.offset += sizeof(header.response) + bodylen; in append_bin_stats()
/memcached-1.6.32/doc/
Dprotocol-binary-range.txt127 0x0004 Value is larger than a single response packet
150 counted), a Get Range response packet MUST be sent instead of the Get
151 response packet. In this instance:
153 1. The Status field of the response header MUST be 0x0004.
154 2. The Offset field of the GetR response extras MUST be 0.
155 3. The Length field of the GetR response extras, and the data
160 4. The Total value length field of the response extras MUST be the
163 The client, upon receipt of a Get Range response bearing Status 0x004
229 Extra data for get range response:
Dprotocol-binary.txt217 Status Status of the response (non-zero on error).
231 Opaque Will be copied back to you in the response.
475 key into the response packet.
565 get/getq response:
621 getk/getkq response:
794 Successful add response:
939 incr/decr response body:
1073 Increment response:
1405 Version response:
1609 response packets look like the following example:
[all …]
Dprotocol.txt68 finished with the "END" response line.
72 command) either one line of response, or several lines of response
304 to indicate the end of response.
383 The response will be one of:
444 to indicate the end of response.
475 The response looks like:
531 response looks like:
810 The response is in the format:
883 The response is in the format:
963 This returns the static response:
[all …]
Dtls.txt108 | response | |
/memcached-1.6.32/scripts/
Dmemcached-tool145 my $response = <$sock>;
146 if ($response =~ /VALUE (\S+) (\d+) (\d+)/) {
/memcached-1.6.32/vendor/mcmc/
DREADME.md6 generic response parser, allowing a single code path regardless of the command
27 * They then call mcmc's functions to send and read the response, parsing and
44 designed with consistent response codes and are hard to implement.
/memcached-1.6.32/t/lib/
DMemcachedTest.pm121 my $response = <$sock>;
122 if ($response =~ /^END/) {
127 $response =~ /VALUE (.*) (\d+) (\d+) (\d+)/;
/memcached-1.6.32/t/
Dbinary-extstore.t352 $self->{socket}->sysread(my $response, ::MIN_RECV_BYTES - length($hdr));
353 $hdr .= $response;
Dbinary-sasl.t410 $self->{socket}->recv(my $response, ::MIN_RECV_BYTES);
413 $opaque, $ident_hi, $ident_lo) = unpack(::RES_PKT_FMT, $response);
Dbinary.t631 $self->{socket}->sysread(my $response, ::MIN_RECV_BYTES - length($hdr));
632 $hdr .= $response;
Dproxyunits.lua204 map.response = {