#ifndef RTNET_SDO_EXAMPLE_RTNETDATALISTENER_H #define RTNET_SDO_EXAMPLE_RTNETDATALISTENER_H #include "ConnectionRequiredRunnable.h" #include "RtnetDataHandler.h" #include "common/thrift/RtnetData.h" #include class RtnetDataListener : public ConnectionRequiredRunnable { public: RtnetDataListener(boost::shared_ptr& protocol, boost::shared_ptr& connectionMonitor, boost::shared_ptr dataHandler); ~RtnetDataListener(); void run(); void stop(); private: boost::shared_ptr dataHandler_; boost::shared_ptr protocol_; boost::shared_ptr processor_; }; #endif // RTNET_SDO_EXAMPLE_RTNETDATALISTENER_H