9#include "./someip_rpc_message.h"
27 std::function<bool(
const std::vector<uint8_t> &, std::vector<uint8_t> &)>;
30 const uint8_t mProtocolVersion;
31 const uint8_t mInterfaceVersion;
32 std::set<uint16_t> mServices;
33 std::map<uint32_t, HandlerType> mHandlers;
35 SomeIpReturnCode validate(
38 void getResponsePayload(
40 SomeIpReturnCode returnCode,
41 const std::vector<uint8_t>& rpcPayload,
42 std::vector<uint8_t> &payload)
const;
44 void getResponsePayload(
46 SomeIpReturnCode returnCode,
47 std::vector<uint8_t> &payload)
const;
54 uint8_t protocolVersion, uint8_t interfaceVersion)
noexcept;
62 const std::vector<uint8_t> &requestPayload,
63 std::vector<uint8_t> &responsePayload)
const;
74 uint16_t serviceId, uint16_t methodId,
HandlerType handler);
SOME/IP RPC server.
Definition: rpc_server.h:23
bool TryInvokeHandler(const std::vector< uint8_t > &requestPayload, std::vector< uint8_t > &responsePayload) const
Try to invoke corresponding request handler at a message reception.
Definition: rpc_server.cpp:72
void SetHandler(uint16_t serviceId, uint16_t methodId, HandlerType handler)
Set a RPC request handler.
Definition: rpc_server.cpp:126
std::function< bool(const std::vector< uint8_t > &, std::vector< uint8_t > &)> HandlerType
SOME/IP RPC request handler type.
Definition: rpc_server.h:27
SOME/IP remote procedure call message.
Definition: someip_rpc_message.h:16