Lines Matching full:request

47     message::Request::ptr request, ipmi::Cc cc, Args&&... args)  in errorResponse()  argument
49 message::Response::ptr response = request->makeResponse(); in errorResponse()
55 message::Request::ptr request, ipmi::Cc cc) in errorResponse() argument
57 message::Response::ptr response = request->makeResponse(); in errorResponse()
98 * @brief Handler base class for dealing with IPMI request/response
110 /** @brief wrap the call to the registered handler with the request
113 * created a request object that contains all the information required to
122 * @param request a shared_ptr to a Request object
126 message::Response::ptr call(message::Request::ptr request) in call() argument
128 return executeCallback(request); in call()
132 /** @brief call the registered handler with the request
135 * created a request object that contains all the information required to
140 * @param request a shared_ptr to a Request object
145 message::Request::ptr request) = 0;
153 * from a request, pass the arguments to the function, and then pack the
167 /** @brief call the registered handler with the request
170 * created a request object that contains all the information required to
180 * @param request a shared_ptr to a Request object
185 message::Request::ptr request) override in executeCallback() argument
187 message::Response::ptr response = request->makeResponse(); in executeCallback()
197 request->payload.trailingOk = false; in executeCallback()
198 ipmi::Cc unpackError = request->unpack(unpackArgs); in executeCallback()
207 * 3) ipmi::message::Request::ptr in executeCallback()
234 std::forward_as_tuple(request->ctx->yield), in executeCallback()
242 std::tuple_cat(std::forward_as_tuple(request->ctx), in executeCallback()
247 ipmi::message::Request::ptr>::value) in executeCallback()
250 std::forward_as_tuple(request), std::move(unpackArgs))); in executeCallback()
272 "NETFN", lg2::hex, request->ctx->netFn, "CMD", lg2::hex, in executeCallback()
273 request->ctx->cmd, "ERROR", e); in executeCallback()
274 return errorResponse(request, e.code()); in executeCallback()
280 "NETFN", lg2::hex, request->ctx->netFn, "CMD", lg2::hex, in executeCallback()
281 request->ctx->cmd, "ERROR", e); in executeCallback()
282 return errorResponse(request, ccUnspecifiedError); in executeCallback()
286 return errorResponse(request, c.code()); in executeCallback()
293 "NETFN", lg2::hex, request->ctx->netFn, "CMD", lg2::hex, in executeCallback()
294 request->ctx->cmd, "ERROR", what); in executeCallback()
295 return errorResponse(request, ccUnspecifiedError); in executeCallback()
315 * way as the legacy IPMI queue, passing in a big buffer for the request and a
333 /** @brief call the registered handler with the request
336 * created a request object that contains all the information required to
345 * @param request a shared_ptr to a Request object
350 message::Request::ptr request) override in executeCallback() argument
352 message::Response::ptr response = request->makeResponse(); in executeCallback()
356 size_t len = request->payload.size() - request->payload.rawIndex; in executeCallback()
361 handler_(request->ctx->netFn, request->ctx->cmd, in executeCallback()
362 request->payload.data() + request->payload.rawIndex, in executeCallback()
369 "NETFN", lg2::hex, request->ctx->netFn, "CMD", lg2::hex, in executeCallback()
370 request->ctx->cmd, "ERROR", e); in executeCallback()
371 return errorResponse(request, e.code()); in executeCallback()
377 "NETFN", lg2::hex, request->ctx->netFn, "CMD", lg2::hex, in executeCallback()
378 request->ctx->cmd, "ERROR", e); in executeCallback()
379 return errorResponse(request, ccUnspecifiedError); in executeCallback()
383 return errorResponse(request, c.code()); in executeCallback()
390 "NETFN", lg2::hex, request->ctx->netFn, "CMD", lg2::hex, in executeCallback()
391 request->ctx->cmd, "ERROR", what); in executeCallback()
392 return errorResponse(request, ccUnspecifiedError); in executeCallback()
404 * same way as the legacy IPMI queue, passing in a big buffer for the request
419 /** @brief call the registered handler with the request
422 * created a request object that contains all the information required to
431 * @param request a shared_ptr to a Request object
436 message::Request::ptr request) override in executeCallback() argument
438 message::Response::ptr response = request->makeResponse(); in executeCallback()
442 size_t len = request->payload.size() - request->payload.rawIndex; in executeCallback()
447 handler_(request->ctx->cmd, in executeCallback()
448 request->payload.data() + request->payload.rawIndex, in executeCallback()
455 "NETFN", lg2::hex, request->ctx->netFn, "CMD", lg2::hex, in executeCallback()
456 request->ctx->cmd, "ERROR", e); in executeCallback()
457 return errorResponse(request, e.code()); in executeCallback()
463 "NETFN", lg2::hex, request->ctx->netFn, "CMD", lg2::hex, in executeCallback()
464 request->ctx->cmd, "ERROR", e); in executeCallback()
465 return errorResponse(request, ccUnspecifiedError); in executeCallback()
469 return errorResponse(request, c.code()); in executeCallback()
476 "NETFN", lg2::hex, request->ctx->netFn, "CMD", lg2::hex, in executeCallback()
477 request->ctx->cmd, "ERROR", what); in executeCallback()
478 return errorResponse(request, ccUnspecifiedError); in executeCallback()
570 * @param handler - the callback function that will handle this request
600 * the first data byte in a request, and the second data byte (following the
608 * @param handler - the callback function that will handle this request
634 * defining body occupies the first three data bytes in a request, and the
643 * @param handler - the callback function that will handle this request
669 * @param handler - the callback function that will handle this request