DDS  ver. 1.6
Public Member Functions | Protected Member Functions | List of all members
dds::protocol_api::CClientChannelImpl< T > Class Template Reference

#include <BaseChannelImpl.h>

Inheritance diagram for dds::protocol_api::CClientChannelImpl< T >:
dds::protocol_api::CBaseChannelImpl< T > dds::protocol_api::CChannelEventsImpl< T > dds::protocol_api::CChannelMessageHandlersImpl dds::protocol_api::CStatImpl

Public Member Functions

void reconnect ()
 
void connect (boost::asio::ip::tcp::resolver::iterator _endpoint_iterator)
 
- Public Member Functions inherited from dds::protocol_api::CBaseChannelImpl< T >
 ~CBaseChannelImpl ()
 
bool isHanshakeOK () const
 
EChannelType getChannelType () const
 
void setChannelType (EChannelType _channelType)
 
void start ()
 
void stop ()
 
boost::asio::ip::tcp::socket & socket ()
 
template<ECmdType _cmd>
void dequeueMsg ()
 
template<ECmdType _cmd, class A >
void accumulativePushMsg (const A &_attachment)
 
template<ECmdType _cmd>
void accumulativePushMsg ()
 
template<ECmdType _cmd, class A >
void pushMsg (const A &_attachment)
 
template<ECmdType _cmd>
void pushMsg ()
 
template<ECmdType _cmd, class A >
void sendYourself (const A &_attachment)
 
template<ECmdType _cmd>
void sendYourself ()
 
void pushBinaryAttachmentCmd (const std::string &_srcFilePath, const std::string &_fileName, uint16_t _cmdSource)
 
void pushBinaryAttachmentCmd (const MiscCommon::BYTEVector_t &_data, const std::string &_fileName, uint16_t _cmdSource)
 
void processBinaryAttachmentStartCmd (SCommandAttachmentImpl< cmdBINARY_ATTACHMENT_START >::ptr_t _attachment)
 
void processBinaryAttachmentCmd (SCommandAttachmentImpl< cmdBINARY_ATTACHMENT >::ptr_t _attachment)
 
void registerDisconnectEventHandler (handlerDisconnectEventFunction_t _handler)
 
bool started ()
 
std::string remoteEndIDString ()
 
- Public Member Functions inherited from dds::protocol_api::CChannelEventsImpl< T >
 CChannelEventsImpl ()
 
 ~CChannelEventsImpl ()
 
connection_t subscribeOnEvent (EChannelEvents _type, typename signal_t::slot_function_type _subscriber)
 
void onEvent (EChannelEvents _type)
 
- Public Member Functions inherited from dds::protocol_api::CChannelMessageHandlersImpl
template<ECmdType _cmd, typename Func >
void registerMessageHandler (Func _handler)
 
template<class... Args>
void dispatchMessageHandlers (ECmdType _cmd, Args &&... args)
 
template<ECmdType _cmd>
size_t getNofMessageHandlers () const
 
- Public Member Functions inherited from dds::protocol_api::CStatImpl
 CStatImpl (boost::asio::io_service &_service)
 
SReadStat getReadStat () const
 Return read statistics. More...
 
SWriteStat getWriteStat () const
 Return write statistics. More...
 
void setStatEnabled (bool _statEnabled)
 Enable/disable statistics accumulation. More...
 
void logReadMessage (CProtocolMessage::protocolMessagePtr_t _message)
 
void logWriteMessages (const protocolMessagePtrQueue_t &_messageQueue)
 

Protected Member Functions

 CClientChannelImpl (boost::asio::io_service &_service, EChannelType _channelType)
 
 ~CClientChannelImpl ()
 
- Protected Member Functions inherited from dds::protocol_api::CBaseChannelImpl< T >
 CBaseChannelImpl (boost::asio::io_service &_service)
 

Additional Inherited Members

- Public Types inherited from dds::protocol_api::CBaseChannelImpl< T >
typedef std::shared_ptr< T > connectionPtr_t
 
typedef std::weak_ptr< T > weakConnectionPtr_t
 
typedef std::vector< connectionPtr_tconnectionPtrVector_t
 
typedef std::vector< weakConnectionPtr_tweakConnectionPtrVector_t
 
- Public Types inherited from dds::protocol_api::CChannelEventsImpl< T >
typedef boost::signals2::signal< void(T *)> signal_t
 
typedef boost::signals2::connection connection_t
 
- Static Public Member Functions inherited from dds::protocol_api::CBaseChannelImpl< T >
static connectionPtr_t makeNew (boost::asio::io_service &_service)
 
- Protected Attributes inherited from dds::protocol_api::CBaseChannelImpl< T >
bool m_isHandshakeOK
 
EChannelType m_channelType
 

Constructor & Destructor Documentation

◆ CClientChannelImpl()

template<class T>
dds::protocol_api::CClientChannelImpl< T >::CClientChannelImpl ( boost::asio::io_service &  _service,
EChannelType  _channelType 
)
inlineprotected

◆ ~CClientChannelImpl()

template<class T>
dds::protocol_api::CClientChannelImpl< T >::~CClientChannelImpl ( )
inlineprotected

Member Function Documentation

◆ connect()

template<class T>
void dds::protocol_api::CClientChannelImpl< T >::connect ( boost::asio::ip::tcp::resolver::iterator  _endpoint_iterator)
inline

◆ reconnect()

template<class T>
void dds::protocol_api::CClientChannelImpl< T >::reconnect ( )
inline

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