client-cpp  0.10.0
kaa::KaaTcpResponseProcessor Class Reference

#include <KaaTcpResponseProcessor.hpp>

Public Member Functions

 KaaTcpResponseProcessor (IKaaClientContext &context)
 
 ~KaaTcpResponseProcessor ()
 
void processResponseBuffer (const char *buf, std::uint32_t size)
 
void registerConnackReceiver (std::function< void(const ConnackMessage &)> onConnack)
 
void registerKaaSyncReceiver (std::function< void(const KaaSyncResponse &)> onKaaSync)
 
void registerDisconnectReceiver (std::function< void(const DisconnectMessage &)> onDisconnect)
 
void registerPingResponseReceiver (std::function< void()> onPing)
 
void flush ()
 

Detailed Description

Definition at line 31 of file KaaTcpResponseProcessor.hpp.

Constructor & Destructor Documentation

kaa::KaaTcpResponseProcessor::KaaTcpResponseProcessor ( IKaaClientContext context)
inline

Definition at line 34 of file KaaTcpResponseProcessor.hpp.

kaa::KaaTcpResponseProcessor::~KaaTcpResponseProcessor ( )
inline

Definition at line 35 of file KaaTcpResponseProcessor.hpp.

Member Function Documentation

void kaa::KaaTcpResponseProcessor::flush ( )
inline

Definition at line 44 of file KaaTcpResponseProcessor.hpp.

void kaa::KaaTcpResponseProcessor::processResponseBuffer ( const char *  buf,
std::uint32_t  size 
)
void kaa::KaaTcpResponseProcessor::registerConnackReceiver ( std::function< void(const ConnackMessage &)>  onConnack)
inline

Definition at line 39 of file KaaTcpResponseProcessor.hpp.

void kaa::KaaTcpResponseProcessor::registerDisconnectReceiver ( std::function< void(const DisconnectMessage &)>  onDisconnect)
inline

Definition at line 41 of file KaaTcpResponseProcessor.hpp.

void kaa::KaaTcpResponseProcessor::registerKaaSyncReceiver ( std::function< void(const KaaSyncResponse &)>  onKaaSync)
inline

Definition at line 40 of file KaaTcpResponseProcessor.hpp.

void kaa::KaaTcpResponseProcessor::registerPingResponseReceiver ( std::function< void()>  onPing)
inline

Definition at line 42 of file KaaTcpResponseProcessor.hpp.


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