client-cpp
0.9.0
|
#include <DefaultOperationTcpChannel.hpp>
Public Member Functions | |
DefaultOperationTcpChannel (IKaaChannelManager *channelManager, const KeyPair &clientKeys, IKaaClientContext &context, IKaaClient *client) | |
virtual | ~DefaultOperationTcpChannel () |
virtual void | sync (TransportType type) |
virtual void | syncAll () |
virtual void | syncAck (TransportType type) |
virtual const std::string & | getId () const |
virtual TransportProtocolId | getTransportProtocolId () const |
virtual void | setMultiplexer (IKaaDataMultiplexer *multiplexer) |
virtual void | setDemultiplexer (IKaaDataDemultiplexer *demultiplexer) |
virtual void | setServer (ITransportConnectionInfoPtr server) |
virtual ITransportConnectionInfoPtr | getServer () |
virtual void | shutdown () |
virtual void | pause () |
virtual void | resume () |
virtual const std::map < TransportType, ChannelDirection > & | getSupportedTransportTypes () const |
virtual ServerType | getServerType () const |
virtual void | setFailoverStrategy (IFailoverStrategyPtr strategy) |
virtual void | setConnectivityChecker (ConnectivityCheckerPtr checker) |
void | onReadEvent (const boost::system::error_code &err) |
void | onPingTimeout (const boost::system::error_code &err) |
void | onConnAckTimeout (const boost::system::error_code &err) |
void | onConnack (const ConnackMessage &message) |
void | onDisconnect (const DisconnectMessage &message) |
void | onKaaSync (const KaaSyncResponse &message) |
void | onPingResponse () |
void | openConnection () |
void | closeConnection () |
void | onServerFailed (KaaFailoverReason failoverReason=KaaFailoverReason::NO_CONNECTIVITY) |
![]() | |
virtual | ~IDataChannel () |
Definition at line 49 of file DefaultOperationTcpChannel.hpp.
kaa::DefaultOperationTcpChannel::DefaultOperationTcpChannel | ( | IKaaChannelManager * | channelManager, |
const KeyPair & | clientKeys, | ||
IKaaClientContext & | context, | ||
IKaaClient * | client | ||
) |
|
virtual |
void kaa::DefaultOperationTcpChannel::closeConnection | ( | ) |
|
inlinevirtual |
Retrieves the channel's id. It should be unique in existing channels scope.
Implements kaa::IDataChannel.
Definition at line 59 of file DefaultOperationTcpChannel.hpp.
|
inlinevirtual |
Retrieves current used server.
Implements kaa::IDataChannel.
Definition at line 69 of file DefaultOperationTcpChannel.hpp.
|
inlinevirtual |
Retrieves the channel's server type (i.e. BOOTSTRAP or OPERATIONS).
Implements kaa::IDataChannel.
Definition at line 81 of file DefaultOperationTcpChannel.hpp.
|
inlinevirtual |
Retrieves the map of transport types and their directions supported by this channel.
Implements kaa::IDataChannel.
Definition at line 77 of file DefaultOperationTcpChannel.hpp.
|
inlinevirtual |
Retrieves the TransportProtocolId.
Implements kaa::IDataChannel.
Definition at line 61 of file DefaultOperationTcpChannel.hpp.
void kaa::DefaultOperationTcpChannel::onConnack | ( | const ConnackMessage & | message | ) |
void kaa::DefaultOperationTcpChannel::onConnAckTimeout | ( | const boost::system::error_code & | err | ) |
void kaa::DefaultOperationTcpChannel::onDisconnect | ( | const DisconnectMessage & | message | ) |
void kaa::DefaultOperationTcpChannel::onKaaSync | ( | const KaaSyncResponse & | message | ) |
void kaa::DefaultOperationTcpChannel::onPingResponse | ( | ) |
void kaa::DefaultOperationTcpChannel::onPingTimeout | ( | const boost::system::error_code & | err | ) |
void kaa::DefaultOperationTcpChannel::onReadEvent | ( | const boost::system::error_code & | err | ) |
void kaa::DefaultOperationTcpChannel::onServerFailed | ( | KaaFailoverReason | failoverReason = KaaFailoverReason::NO_CONNECTIVITY | ) |
void kaa::DefaultOperationTcpChannel::openConnection | ( | ) |
|
virtual |
Pauses the channel's workflow. The channel should stop all network activity.
Implements kaa::IDataChannel.
|
virtual |
Resumes the channel's workflow. The channel should restore the previous connection.
Implements kaa::IDataChannel.
|
inlinevirtual |
Sets connectivity checker to the current channel.
checker | platform-dependent connectivity checker. |
Implements kaa::IDataChannel.
Definition at line 89 of file DefaultOperationTcpChannel.hpp.
|
virtual |
Sets the request multiplexer for this channel.
multiplexer | multiplexer instance to be set. |
Implements kaa::IDataChannel.
|
inlinevirtual |
Implements kaa::IDataChannel.
Definition at line 85 of file DefaultOperationTcpChannel.hpp.
|
virtual |
Sets the response demultiplexer for this channel.
demultiplexer | demultiplexer instance to be set. |
Implements kaa::IDataChannel.
|
virtual |
Sets the connection data for the current channel.
connectionInfo | The server's connection data. |
Implements kaa::IDataChannel.
|
virtual |
Shuts down the channel instance. All connections and threads should be terminated. The instance can no longer be used.
Implements kaa::IDataChannel.
|
virtual |
Updates the channel's state of the specific service.
type | transport type of the service. |
Implements kaa::IDataChannel.
|
virtual |
Updates the channel's state of all supported services.
Implements kaa::IDataChannel.
|
virtual |
Updates the channel's state of all supported services.
Implements kaa::IDataChannel.