client-cpp
0.10.0
|
#include <IDataChannel.hpp>
Public Member Functions | |
virtual void | setFailoverStrategy (IFailoverStrategyPtr strategy)=0 |
virtual void | sync (TransportType type)=0 |
virtual void | syncAll ()=0 |
virtual void | syncAck (TransportType type)=0 |
virtual const std::string & | getId () const =0 |
virtual TransportProtocolId | getTransportProtocolId () const =0 |
virtual ServerType | getServerType () const =0 |
virtual void | setMultiplexer (IKaaDataMultiplexer *multiplexer)=0 |
virtual void | setDemultiplexer (IKaaDataDemultiplexer *demultiplexer)=0 |
virtual void | setServer (ITransportConnectionInfoPtr connectionInfo)=0 |
virtual ITransportConnectionInfoPtr | getServer ()=0 |
virtual const std::map < TransportType, ChannelDirection > & | getSupportedTransportTypes () const =0 |
virtual void | setConnectivityChecker (ConnectivityCheckerPtr checker)=0 |
virtual void | shutdown ()=0 |
virtual void | pause ()=0 |
virtual void | resume ()=0 |
virtual | ~IDataChannel () |
Channel is responsible for sending/receiving data to/from the endpoint server.
Definition at line 39 of file IDataChannel.hpp.
|
inlinevirtual |
Definition at line 164 of file IDataChannel.hpp.
|
pure virtual |
Retrieves the channel's id. It should be unique in existing channels scope.
Implemented in kaa::DefaultOperationTcpChannel, kaa::DefaultOperationLongPollChannel, kaa::DefaultOperationHttpChannel, and kaa::DefaultBootstrapChannel.
|
pure virtual |
Retrieves current used server.
Implemented in kaa::DefaultOperationLongPollChannel, kaa::DefaultOperationTcpChannel, and kaa::AbstractHttpChannel.
|
pure virtual |
Retrieves the channel's server type (i.e. BOOTSTRAP or OPERATIONS).
Implemented in kaa::DefaultOperationTcpChannel, and kaa::DefaultOperationLongPollChannel.
|
pure virtual |
Retrieves the map of transport types and their directions supported by this channel.
Implemented in kaa::DefaultOperationTcpChannel, kaa::DefaultOperationLongPollChannel, kaa::DefaultOperationHttpChannel, and kaa::DefaultBootstrapChannel.
|
pure virtual |
Retrieves the TransportProtocolId.
Implemented in kaa::AbstractHttpChannel, kaa::DefaultOperationTcpChannel, and kaa::DefaultOperationLongPollChannel.
|
pure virtual |
Pauses the channel's workflow. The channel should stop all network activity.
Implemented in kaa::DefaultOperationTcpChannel, kaa::DefaultOperationLongPollChannel, and kaa::ImpermanentDataChannel.
|
pure virtual |
Resumes the channel's workflow. The channel should restore the previous connection.
Implemented in kaa::DefaultOperationTcpChannel, kaa::DefaultOperationLongPollChannel, and kaa::ImpermanentDataChannel.
|
pure virtual |
Sets connectivity checker to the current channel.
checker | platform-dependent connectivity checker. |
Implemented in kaa::DefaultOperationTcpChannel, kaa::DefaultOperationLongPollChannel, and kaa::AbstractHttpChannel.
|
pure virtual |
Sets the request multiplexer for this channel.
multiplexer | multiplexer instance to be set. |
Implemented in kaa::DefaultOperationTcpChannel, kaa::DefaultOperationLongPollChannel, and kaa::AbstractHttpChannel.
|
pure virtual |
Implemented in kaa::DefaultOperationTcpChannel, kaa::DefaultOperationLongPollChannel, and kaa::AbstractHttpChannel.
|
pure virtual |
Sets the response demultiplexer for this channel.
demultiplexer | demultiplexer instance to be set. |
Implemented in kaa::DefaultOperationTcpChannel, kaa::DefaultOperationLongPollChannel, and kaa::AbstractHttpChannel.
|
pure virtual |
Sets the connection data for the current channel.
connectionInfo | The server's connection data. |
Implemented in kaa::DefaultOperationTcpChannel, kaa::DefaultOperationLongPollChannel, and kaa::AbstractHttpChannel.
|
pure virtual |
Shuts down the channel instance. All connections and threads should be terminated. The instance can no longer be used.
Implemented in kaa::DefaultOperationTcpChannel, kaa::DefaultOperationLongPollChannel, and kaa::ImpermanentDataChannel.
|
pure virtual |
Updates the channel's state of the specific service.
type | transport type of the service. |
Implemented in kaa::DefaultOperationTcpChannel, kaa::AbstractHttpChannel, and kaa::DefaultOperationLongPollChannel.
|
pure virtual |
Updates the channel's state of all supported services.
Implemented in kaa::DefaultOperationTcpChannel, kaa::AbstractHttpChannel, and kaa::DefaultOperationLongPollChannel.
|
pure virtual |
Updates the channel's state of all supported services.
Implemented in kaa::DefaultOperationTcpChannel, kaa::AbstractHttpChannel, and kaa::DefaultOperationLongPollChannel.