11 #ifndef _EMBEDDED_RPC__CLIENT_MANAGER_H_ 12 #define _EMBEDDED_RPC__CLIENT_MANAGER_H_ 29 #include "erpc_common.h" 68 m_server(NULL), m_serverThreadId(NULL)
116 #if ERPC_NESTED_CALLS 122 void setServer(
Server *server) { m_server = server; }
129 void setServerThreadId(
Thread::thread_id_t serverThreadId) { m_serverThreadId = serverThreadId; }
135 #if ERPC_NESTED_CALLS 150 #if ERPC_NESTED_CALLS 197 m_sequence(sequence), m_codec(codec), m_oneway(argIsOneway)
241 #endif // _EMBEDDED_RPC__CLIENT_MANAGER_H_ enum _erpc_status erpc_status_t
Type used for all status and error return values.
Definition: erpc_common.h:85
Base client implementation.
Definition: erpc_client_manager.h:56
uint32_t m_sequence
Sequence number.
Definition: erpc_client_manager.h:133
Abstract serialization encoder/decoder interface.
Definition: erpc_codec.hpp:53
bool m_oneway
When true, request context will be oneway type (only send data).
Definition: erpc_client_manager.h:232
uint32_t m_sequence
Sequence number. To be sure that reply belong to current request.
Definition: erpc_client_manager.h:230
void setIsOneway(bool oneway)
Set request context to be oneway type (only send data).
Definition: erpc_client_manager.h:227
virtual void verifyReply(RequestContext &request)
Validate that an incoming message is a reply.
Definition: erpc_client_manager.cpp:161
void callErrorHandler(erpc_status_t err, uint32_t functionID)
This function calls error handler callback function with given status.
Definition: erpc_client_manager.cpp:218
bool isOneway(void) const
Returns information if request context is oneway or not.
Definition: erpc_client_manager.h:220
Common class inherited by client and server class.
Definition: erpc_client_server_common.hpp:39
ClientManager(void)
Constructor.
Definition: erpc_client_manager.h:64
virtual void performClientRequest(RequestContext &request)
This function performs request.
Definition: erpc_client_manager.cpp:59
Based server functionality.
Definition: erpc_server.hpp:98
uint32_t getSequence(void) const
Get sequence number (be sure that reply belong to current request).
Definition: erpc_client_manager.h:213
#define ERPC_NESTED_CALLS
Definition: erpc_arbitrated_client_manager.hpp:25
virtual ~ClientManager(void)
ClientManager destructor.
Definition: erpc_client_manager.h:76
RequestContext(uint32_t sequence, Codec *codec, bool argIsOneway)
Constructor.
Definition: erpc_client_manager.h:196
Codec * getCodec(void)
Get inout codec (for writing).
Definition: erpc_client_manager.h:206
Codec * m_codec
Inout codec. Codec for receiving and sending data.
Definition: erpc_client_manager.h:231
Codec * createBufferAndCodec(void)
Create message buffer and codec.
Definition: erpc_client_manager.cpp:185
struct ClientType * erpc_client_t
Opaque client object type.
Definition: erpc_client_manager.h:36
void(* client_error_handler_t)(erpc_status_t err, uint32_t functionID)
Definition: erpc_client_manager.h:32
void * thread_id_t
Unique identifier for a thread.
Definition: erpc_threading.h:73
virtual RequestContext createRequest(bool isOneway)
This function creates request context.
Definition: erpc_client_manager.cpp:27
void setErrorHandler(client_error_handler_t error_handler)
This function sets error handler function for infrastructure errors.
Definition: erpc_client_manager.h:104
virtual void performRequest(RequestContext &request)
This function performs request.
Definition: erpc_client_manager.cpp:35
virtual void releaseRequest(RequestContext &request)
This function releases request context.
Definition: erpc_client_manager.cpp:209
Encapsulates all information about a request.
Definition: erpc_client_manager.h:184
client_error_handler_t m_errorHandler
Pointer to function error handler.
Definition: erpc_client_manager.h:134