26 #ifndef _COMMDRIVERN2KSOCKETCAN_H
27 #define _COMMDRIVERN2KSOCKETCAN_H
32 #include "model/comm_drv_n2k.h"
33 #include "model/conn_params.h"
37 static std::shared_ptr<CommDriverN2KSocketCAN> Create(
47 bool SendMessage(std::shared_ptr<const NavMsg> msg,
48 std::shared_ptr<const NavAddr> addr) = 0;
50 virtual bool Open() = 0;
51 virtual void Close() = 0;
53 void UpdateAttrCanAddress();
63 std::string m_portstring;
64 std::string m_baudrate;
void SetListener(DriverListener &l) override
Set the entity which will receive incoming data.
void Activate() override
Register driver and possibly do other post-ctor steps.
Interface implemented by transport layer and possible other parties like test code which should handl...