eRPC API Reference  Rev. 1.12.0
NXP Semiconductors
erpc::ClientServerCommon Class Reference

Common class inherited by client and server class. More...

#include <erpc_client_server_common.hpp>

+ Inheritance diagram for erpc::ClientServerCommon:
+ Collaboration diagram for erpc::ClientServerCommon:

Public Member Functions

 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...
 
CodecFactorygetCodecFactory (void)
 This function sets codec factory to use. More...
 
void setTransport (Transport *transport)
 This function sets transport layer to use. More...
 
TransportgetTransport (void)
 This function gets transport instance. More...
 

Protected Attributes

MessageBufferFactorym_messageFactory
 Message buffer factory to use.
 
CodecFactorym_codecFactory
 Codec to use.
 
Transportm_transport
 Transport layer to use.
 

Detailed Description

Common class inherited by client and server class.

Member Function Documentation

void erpc::ClientServerCommon::setMessageBufferFactory ( MessageBufferFactory factory)
inline

This function sets message buffer factory to use.

Parameters
[in]factoryMessage buffer factory to use.
void erpc::ClientServerCommon::setCodecFactory ( CodecFactory factory)
inline

This function sets codec factory to use.

Parameters
[in]factoryCodec factory to use.
CodecFactory* erpc::ClientServerCommon::getCodecFactory ( void  )
inline

This function sets codec factory to use.

Returns
CodecFactory * Codec factory to use.
void erpc::ClientServerCommon::setTransport ( Transport transport)
inline

This function sets transport layer to use.

It also set messageBufferFactory to the same as in transport layer.

Parameters
[in]transportTransport layer to use.
Transport* erpc::ClientServerCommon::getTransport ( void  )
inline

This function gets transport instance.

Returns
Transport * Pointer to transport instance.

The documentation for this class was generated from the following file: