eRPC API Reference  Rev. 1.12.0
NXP Semiconductors
erpc_arbitrated_client_manager.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016, Freescale Semiconductor, Inc.
3  * Copyright 2016 NXP
4  * All rights reserved.
5  *
6  *
7  * SPDX-License-Identifier: BSD-3-Clause
8  */
9 
10 #ifndef _EMBEDDED_RPC__ARBITRATED_CLIENT_MANAGER_H_
11 #define _EMBEDDED_RPC__ARBITRATED_CLIENT_MANAGER_H_
12 
13 #include "erpc_client_manager.h"
14 
21 // Classes
24 
25 namespace erpc {
26 class TransportArbitrator;
27 
41 {
42 public:
49 
55  void setArbitrator(TransportArbitrator *arbitrator);
56 
63 
64 protected:
66 
75  virtual void performClientRequest(RequestContext &request) override;
76 
78  void setTransport(Transport *transport) { (void)transport; }
79 };
80 
81 } // namespace erpc
82 
85 #endif // _EMBEDDED_RPC__ARBITRATED_CLIENT_MANAGER_H_
Abstract interface for transport layer.
Definition: erpc_transport.hpp:36
virtual void performClientRequest(RequestContext &request) override
This function performs request.
Definition: erpc_arbitrated_client_manager.cpp:39
TransportArbitrator * getArbitrator(void)
Gets the transport arbitrator instance.
Definition: erpc_arbitrated_client_manager.hpp:62
Interposer to share transport between client and server.
Definition: erpc_transport_arbitrator.hpp:40
Base client implementation.
Definition: erpc_client_manager.h:56
void setTransport(Transport *transport)
This method is not used with this class.
Definition: erpc_arbitrated_client_manager.hpp:78
void setArbitrator(TransportArbitrator *arbitrator)
Sets the transport arbitrator instance.
Definition: erpc_arbitrated_client_manager.cpp:33
ArbitratedClientManager(void)
Constructor.
Definition: erpc_arbitrated_client_manager.hpp:48
Client that can share a transport with a server.
Definition: erpc_arbitrated_client_manager.hpp:40
Definition: erpc_arbitrated_client_manager.hpp:25
TransportArbitrator * m_arbitrator
Optional transport arbitrator. May be NULL.
Definition: erpc_arbitrated_client_manager.hpp:62
Encapsulates all information about a request.
Definition: erpc_client_manager.h:184