Lines Matching refs:header
1123 protocol_binary_response_header* header; in add_bin_header() local
1138 header = (protocol_binary_response_header *)c->wbuf; in add_bin_header()
1140 header->response.magic = (uint8_t)PROTOCOL_BINARY_RES; in add_bin_header()
1141 header->response.opcode = c->binary_header.request.opcode; in add_bin_header()
1142 header->response.keylen = (uint16_t)htons(key_len); in add_bin_header()
1144 header->response.extlen = (uint8_t)hdr_len; in add_bin_header()
1145 header->response.datatype = (uint8_t)PROTOCOL_BINARY_RAW_BYTES; in add_bin_header()
1146 header->response.status = (uint16_t)htons(err); in add_bin_header()
1148 header->response.bodylen = htonl(body_len); in add_bin_header()
1149 header->response.opaque = c->opaque; in add_bin_header()
1150 header->response.cas = htonll(c->cas); in add_bin_header()
1155 for (ii = 0; ii < sizeof(header->bytes); ++ii) { in add_bin_header()
1159 fprintf(stderr, " 0x%02x", header->bytes[ii]); in add_bin_header()
1164 add_iov(c, c->wbuf, sizeof(header->response)); in add_bin_header()
1494 rsp->message.header.response.cas = htonll(ITEM_get_cas(it)); in process_bin_get_or_touch()
1562 protocol_binary_response_header header = { in append_bin_stats() local
1571 memcpy(buf, header.bytes, sizeof(header.response)); in append_bin_stats()
1572 buf += sizeof(header.response); in append_bin_stats()
1583 c->stats.offset += sizeof(header.response) + bodylen; in append_bin_stats()
2385 uint64_t cas = ntohll(req->message.header.request.cas); in process_bin_delete()