Lines Matching refs:request
780 protocol_binary_request_set *request = (void*)buf; in storage_command() local
781 assert(bufsz > sizeof(*request) + keylen + dtalen); in storage_command()
783 memset(request, 0, sizeof(*request)); in storage_command()
784 request->message.header.request.magic = PROTOCOL_BINARY_REQ; in storage_command()
785 request->message.header.request.opcode = cmd; in storage_command()
786 request->message.header.request.keylen = htons(keylen); in storage_command()
787 request->message.header.request.extlen = 8; in storage_command()
788 request->message.header.request.bodylen = htonl(keylen + 8 + dtalen); in storage_command()
789 request->message.header.request.opaque = 0xdeadbeef; in storage_command()
790 request->message.body.flags = flags; in storage_command()
791 request->message.body.expiration = exp; in storage_command()
812 protocol_binary_request_no_extras *request = (void*)buf; in ext_command() local
813 assert(bufsz > sizeof(*request) + extlen + keylen + dtalen); in ext_command()
815 memset(request, 0, sizeof(*request)); in ext_command()
816 request->message.header.request.magic = PROTOCOL_BINARY_REQ; in ext_command()
817 request->message.header.request.opcode = cmd; in ext_command()
818 request->message.header.request.extlen = extlen; in ext_command()
819 request->message.header.request.keylen = htons(keylen); in ext_command()
820 request->message.header.request.bodylen = htonl(extlen + keylen + dtalen); in ext_command()
821 request->message.header.request.opaque = 0xdeadbeef; in ext_command()
837 return sizeof(*request) + extlen + keylen + dtalen; in ext_command()
852 protocol_binary_request_flush *request = (void*)buf; in flush_command() local
853 assert(bufsz > sizeof(*request)); in flush_command()
855 memset(request, 0, sizeof(*request)); in flush_command()
856 request->message.header.request.magic = PROTOCOL_BINARY_REQ; in flush_command()
857 request->message.header.request.opcode = cmd; in flush_command()
861 request->message.header.request.extlen = 4; in flush_command()
862 request->message.body.expiration = htonl(exptime); in flush_command()
863 request->message.header.request.bodylen = htonl(4); in flush_command()
867 request->message.header.request.opaque = 0xdeadbeef; in flush_command()
879 protocol_binary_request_touch *request = (void*)buf; in touch_command() local
880 assert(bufsz > sizeof(*request)); in touch_command()
882 memset(request, 0, sizeof(*request)); in touch_command()
883 request->message.header.request.magic = PROTOCOL_BINARY_REQ; in touch_command()
884 request->message.header.request.opcode = cmd; in touch_command()
886 request->message.header.request.keylen = htons(keylen); in touch_command()
887 request->message.header.request.extlen = 4; in touch_command()
888 request->message.body.expiration = htonl(exptime); in touch_command()
889 request->message.header.request.bodylen = htonl(keylen + 4); in touch_command()
891 request->message.header.request.opaque = 0xdeadbeef; in touch_command()
907 protocol_binary_request_incr *request = (void*)buf; in arithmetic_command() local
908 assert(bufsz > sizeof(*request) + keylen); in arithmetic_command()
910 memset(request, 0, sizeof(*request)); in arithmetic_command()
911 request->message.header.request.magic = PROTOCOL_BINARY_REQ; in arithmetic_command()
912 request->message.header.request.opcode = cmd; in arithmetic_command()
913 request->message.header.request.keylen = htons(keylen); in arithmetic_command()
914 request->message.header.request.extlen = 20; in arithmetic_command()
915 request->message.header.request.bodylen = htonl(keylen + 20); in arithmetic_command()
916 request->message.header.request.opaque = 0xdeadbeef; in arithmetic_command()
917 request->message.body.delta = htonll(delta); in arithmetic_command()
918 request->message.body.initial = htonll(initial); in arithmetic_command()
919 request->message.body.expiration = htonl(exp); in arithmetic_command()
1029 protocol_binary_request_no_extras request; in test_binary_noop() member
1048 protocol_binary_request_no_extras request; in test_binary_quit_impl() member
1080 protocol_binary_request_no_extras request; in test_binary_set_impl() member
1104 send.request.message.header.request.cas = receive.response.message.header.response.cas; in test_binary_set_impl()
1110 … assert(receive.response.message.header.response.cas != send.request.message.header.request.cas); in test_binary_set_impl()
1130 protocol_binary_request_no_extras request; in test_binary_add_impl() member
1169 protocol_binary_request_no_extras request; in test_binary_replace_impl() member
1220 protocol_binary_request_no_extras request; in test_binary_delete_impl() member
1269 protocol_binary_request_no_extras request; in test_binary_get_impl() member
1302 protocol_binary_request_no_extras request; in test_binary_get_impl() member
1341 protocol_binary_request_no_extras request; in test_binary_getq_impl() member
1360 temp.request.message.header.request.opaque = 0xfeedface; in test_binary_getq_impl()
1400 protocol_binary_request_no_extras request; in test_binary_incr_impl() member
1437 protocol_binary_request_no_extras request; in test_binary_decr_impl() member
1482 protocol_binary_request_no_extras request; in test_binary_version() member
1501 protocol_binary_request_no_extras request; in test_binary_flush_impl() member
1577 protocol_binary_request_no_extras request; in test_binary_concat_impl() member
1663 protocol_binary_request_no_extras request; in test_binary_stat() member
1686 protocol_binary_request_no_extras request; in test_binary_illegal() member
1728 protocol_binary_request_no_extras request; in test_binary_pipeline_hickup_chunk() member