9 #if !defined(__embedded_rpc__transport_arbitrator__) 10 #define __embedded_rpc__transport_arbitrator__ 179 #endif // defined(__embedded_rpc__transport_arbitrator__) Abstract interface for transport layer.
Definition: erpc_transport.h:36
Interposer to share transport between client and server.
Definition: erpc_transport_arbitrator.h:40
~PendingClientInfo(void)
Destructor.
Definition: erpc_transport_arbitrator.cpp:249
enum _erpc_status erpc_status_t
Type used for all status and error return values.
Definition: erpc_common.h:87
erpc_status_t clientReceive(client_token_t token)
Receive method for the client.
Definition: erpc_transport_arbitrator.cpp:150
Abstract serialization encoder/decoder interface.
Definition: erpc_codec.h:53
client_token_t prepareClientReceive(RequestContext &request)
Add a client request to the client list.
Definition: erpc_transport_arbitrator.cpp:139
PendingClientInfo * addPendingClient(void)
This function adds pending client.
Definition: erpc_transport_arbitrator.cpp:165
Request info for a client trying to receive a response.
Definition: erpc_transport_arbitrator.h:131
PendingClientInfo(void)
Constructor.
Definition: erpc_transport_arbitrator.cpp:241
bool m_isValid
Definition: erpc_transport_arbitrator.h:135
Transport * m_sharedTransport
Transport being shared through this arbitrator.
Definition: erpc_transport_arbitrator.h:125
void freeClientList(PendingClientInfo *list)
This function removes pending client list.
Definition: erpc_transport_arbitrator.cpp:228
PendingClientInfo * m_clientFreeList
Unused client receive info structs.
Definition: erpc_transport_arbitrator.h:150
Represents a memory buffer containing a message.
Definition: erpc_message_buffer.h:37
Definition: erpc_arbitrated_client_manager.h:25
PendingClientInfo * m_next
Definition: erpc_transport_arbitrator.h:136
void removePendingClient(PendingClientInfo *info)
This function removes pending client.
Definition: erpc_transport_arbitrator.cpp:195
virtual ~TransportArbitrator(void)
Destructor.
Definition: erpc_transport_arbitrator.cpp:38
Class for compute crc16.
Definition: erpc_crc16.h:29
RequestContext * m_request
Definition: erpc_transport_arbitrator.h:133
virtual void setCrc16(Crc16 *crcImpl) override
This functions sets the CRC-16 implementation.
Definition: erpc_transport_arbitrator.cpp:45
void setCodec(Codec *codec)
This function set codec.
Definition: erpc_transport_arbitrator.h:68
PendingClientInfo * m_clientList
Active client receive requests.
Definition: erpc_transport_arbitrator.h:149
Codec * m_codec
Codec used to read incoming message headers.
Definition: erpc_transport_arbitrator.h:126
Mutex m_clientListMutex
Mutex guarding the client active and free lists.
Definition: erpc_transport_arbitrator.h:151
virtual erpc_status_t receive(MessageBuffer *message) override
Prototype for receiving message.
Definition: erpc_transport_arbitrator.cpp:52
void setSharedTransport(Transport *shared)
This function set shared client/server transport.
Definition: erpc_transport_arbitrator.h:61
Semaphore m_sem
Definition: erpc_transport_arbitrator.h:134
TransportArbitrator(void)
Constructor.
Definition: erpc_transport_arbitrator.cpp:28
virtual erpc_status_t send(MessageBuffer *message) override
Prototype for send message.
Definition: erpc_transport_arbitrator.cpp:133
uintptr_t client_token_t
Represents a single client's receive request.
Definition: erpc_transport_arbitrator.h:44
Mutex.
Definition: erpc_threading.h:307
Simple semaphore class.
Definition: erpc_threading.h:411
Encapsulates all information about a request.
Definition: erpc_client_manager.h:212