![]() |
eRPC API Reference
Rev. 1.12.0
NXP Semiconductors
|
Based server functionality. More...
#include <erpc_server.hpp>
Inheritance diagram for erpc::Server:
Collaboration diagram for erpc::Server:Public Member Functions | |
| Server (void) | |
| Constructor. More... | |
| virtual | ~Server (void) |
| Server destructor. | |
| void | addService (Service *service) |
| Add service. More... | |
| void | removeService (Service *service) |
| Remove service. More... | |
| virtual erpc_status_t | run (void)=0 |
| This function runs the server. | |
| virtual void | stop (void)=0 |
| This function stop the server. | |
Public Member Functions inherited from erpc::ClientServerCommon | |
| ClientServerCommon (void) | |
| ClientServerCommon constructor. | |
| ~ClientServerCommon (void) | |
| ClientServerCommon destructor. | |
| void | setMessageBufferFactory (MessageBufferFactory *factory) |
| This function sets message buffer factory to use. More... | |
| void | setCodecFactory (CodecFactory *factory) |
| This function sets codec factory to use. More... | |
| CodecFactory * | getCodecFactory (void) |
| This function sets codec factory to use. More... | |
| void | setTransport (Transport *transport) |
| This function sets transport layer to use. More... | |
| Transport * | getTransport (void) |
| This function gets transport instance. More... | |
Protected Member Functions | |
| virtual erpc_status_t | processMessage (Codec *codec, message_type_t msgType, uint32_t serviceId, uint32_t methodId, uint32_t sequence) |
| Process message. More... | |
| virtual erpc_status_t | readHeadOfMessage (Codec *codec, message_type_t &msgType, uint32_t &serviceId, uint32_t &methodId, uint32_t &sequence) |
| Read head of message to identify type of message. More... | |
| virtual Service * | findServiceWithId (uint32_t serviceId) |
| This function finds service base on service ID. More... | |
Protected Attributes | |
| Service * | m_firstService |
Protected Attributes inherited from erpc::ClientServerCommon | |
| MessageBufferFactory * | m_messageFactory |
| Message buffer factory to use. | |
| CodecFactory * | m_codecFactory |
| Codec to use. | |
| Transport * | m_transport |
| Transport layer to use. | |
Based server functionality.
|
inline |
Constructor.
This function initializes object attributes.
| void Server::removeService | ( | Service * | service | ) |
Remove service.
| [in] | service | Service to remove. |
|
protectedvirtual |
Process message.
| [in] | codec | Inout codec to use. |
| [in] | msgType | Type of received message. Based on message type will be (will be not) sent respond. |
| [in] | serviceId | To identify interface. |
| [in] | methodId | To identify function in interface. |
| [in] | sequence | To connect correct answer with correct request. |
|
protectedvirtual |
Read head of message to identify type of message.
| [in] | codec | Inout codec to use. |
| [out] | msgType | Type of received message. Based on message type will be (will be not) sent respond. |
| [out] | serviceId | To identify interface. |
| [out] | methodId | To identify function in interface. |
| [out] | sequence | To connect correct answer with correct request. |
|
protectedvirtual |
This function finds service base on service ID.
| [in] | serviceId | Service id number. |
|
protected |
Contains pointer to first service.