eRPC API Reference
Rev. 1.7.0
NXP Semiconductors
Main Page
API Reference
Classes
Files
File List
File Members
erpc_arbitrated_client_manager.h
Go to the documentation of this file.
1
/*
2
* The Clear BSD License
3
* Copyright (c) 2016, Freescale Semiconductor, Inc.
4
* Copyright 2016 NXP
5
* All rights reserved.
6
*
7
*
8
* Redistribution and use in source and binary forms, with or without modification,
9
* are permitted (subject to the limitations in the disclaimer below) provided
10
* that the following conditions are met:
11
*
12
* o Redistributions of source code must retain the above copyright notice, this list
13
* of conditions and the following disclaimer.
14
*
15
* o Redistributions in binary form must reproduce the above copyright notice, this
16
* list of conditions and the following disclaimer in the documentation and/or
17
* other materials provided with the distribution.
18
*
19
* o Neither the name of the copyright holder nor the names of its
20
* contributors may be used to endorse or promote products derived from this
21
* software without specific prior written permission.
22
*
23
* NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE.
24
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
25
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
26
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
28
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
31
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
*/
35
36
#ifndef _EMBEDDED_RPC__ARBITRATED_CLIENT_MANAGER_H_
37
#define _EMBEDDED_RPC__ARBITRATED_CLIENT_MANAGER_H_
38
39
#include "
erpc_client_manager.h
"
40
47
// Classes
50
51
namespace
erpc
{
52
class
TransportArbitrator;
53
66
class
ArbitratedClientManager
:
public
ClientManager
67
{
68
public
:
74
ArbitratedClientManager
(
void
)
75
:
ClientManager
()
76
,
m_arbitrator
(NULL)
77
{
78
}
79
85
void
setArbitrator
(
TransportArbitrator
*arbitrator);
86
87
protected
:
88
TransportArbitrator
*
m_arbitrator
;
89
98
virtual
erpc_status_t
performClientRequest
(
RequestContext
&request);
99
101
void
setTransport
(
Transport
*transport) {}
102
};
103
104
}
// namespace erpc
105
108
#endif // _EMBEDDED_RPC__ARBITRATED_CLIENT_MANAGER_H_
erpc::Transport
Abstract interface for transport layer.
Definition:
erpc_transport.h:61
erpc_status_t
int32_t erpc_status_t
Type used for all status and error return values.
Definition:
erpc_common.h:112
erpc::TransportArbitrator
Interposer to share transport between client and server.
Definition:
erpc_transport_arbitrator.h:66
erpc_client_manager.h
erpc::ClientManager
Base client implementation.
Definition:
erpc_client_manager.h:83
erpc::ArbitratedClientManager::setTransport
void setTransport(Transport *transport)
This method is not used with this class.
Definition:
erpc_arbitrated_client_manager.h:101
erpc::ArbitratedClientManager::setArbitrator
void setArbitrator(TransportArbitrator *arbitrator)
Sets the transport arbitrator instance.
Definition:
erpc_arbitrated_client_manager.cpp:52
erpc::ArbitratedClientManager::ArbitratedClientManager
ArbitratedClientManager(void)
Constructor.
Definition:
erpc_arbitrated_client_manager.h:74
erpc::ArbitratedClientManager
Client that can share a transport with a server.
Definition:
erpc_arbitrated_client_manager.h:66
erpc
Definition:
erpc_arbitrated_client_manager.h:51
erpc::ArbitratedClientManager::performClientRequest
virtual erpc_status_t performClientRequest(RequestContext &request)
This function performs request.
Definition:
erpc_arbitrated_client_manager.cpp:58
erpc::ArbitratedClientManager::m_arbitrator
TransportArbitrator * m_arbitrator
Optional transport arbitrator. May be NULL.
Definition:
erpc_arbitrated_client_manager.h:88
erpc::RequestContext
Encapsulates all information about a request.
Definition:
erpc_client_manager.h:245
© 2016 NXP Semiconductors. All rights reserved.