Go to the documentation of this file.
6 #include <boost/asio.hpp>
7 #include <boost/thread/mutex.hpp>
8 #include <boost/thread/thread.hpp>
26 #if BOOST_ASIO_VERSION >= 101200 // Boost 1.66+
27 boost::asio::io_context::strand
strand_;
95 boost::thread post_thread([
this]() {
io_service_.run(); });
99 boost::system::error_code ec;
FrameListener::ListenerConstSharedPtr FrameListenerConstSharedPtr
void setInternalError(unsigned int internal_error)
virtual StateListenerConstSharedPtr createStateListener(const StateFunc &delegate)
StateListener::ListenerConstSharedPtr StateListenerConstSharedPtr
boost::asio::strand strand_
boost::mutex socket_mutex_
StateDispatcher state_dispatcher_
std::function< void(const Frame &)> FrameFunc
BaseClass::ListenerConstSharedPtr createListener(const K &key, const typename BaseClass::Callable &callable)
virtual void triggerReadSome()=0
virtual bool send(const Frame &msg)
virtual FrameListenerConstSharedPtr createMsgListener(const FrameFunc &delegate)
boost::mutex state_mutex_
void setErrorCode(const boost::system::error_code &error)
virtual bool enqueue(const Frame &msg)=0
FrameDispatcher frame_dispatcher_
boost::system::error_code error_code
device access error
boost::asio::io_service io_service_
void dispatch(const Type &obj)
virtual FrameListenerConstSharedPtr createMsgListener(const Frame::Header &h, const FrameFunc &delegate)
void setDriverState(State::DriverState state)
std::function< void(const State &)> StateFunc
ListenerConstSharedPtr createListener(const Callable &callable)
enum can::State::DriverState driver_state
void frameReceived(const boost::system::error_code &error)
void dispatchFrame(const Frame &msg)
void dispatch(const K &key, const typename BaseClass::Type &obj)
unsigned int internal_error
driver specific error