MCPcopy Create free account
hub / github.com/EIPStackGroup/OpENer / EncodeReplyService

Function EncodeReplyService

source/src/enet_encap/cpf.c:473–480  ·  view source on GitHub ↗

* @brief Encodes the reply service code for the requested service * * @param message_router_response The router response message data structure to be processed * @param outgoing_message The outgoing message object * * @return The new size of the message buffer */

Source from the content-addressed store, hash-verified

471 * @return The new size of the message buffer
472 */
473int EncodeReplyService(
474 const CipMessageRouterResponse *const message_router_response,
475 ENIPMessage *const outgoing_message) {
476 outgoing_message->used_message_length += AddSintToMessage(
477 message_router_response->reply_service,
478 &outgoing_message->current_message_position);
479 return outgoing_message->used_message_length;
480}
481
482/**
483 * @brief Encodes the reserved byte in the message router response

Callers 1

AssembleLinearMessageFunction · 0.85

Calls 1

AddSintToMessageFunction · 0.85

Tested by

no test coverage detected