boost::asio over SocketCAN
I was thinking of making use of Boost Asio to read data from a Socket CAN . There's nothing fancy going on in linux/can.h , and the device should behave like the loopback interface, and be used with a raw socket. Looking at the basic_raw_socket interface it seems that I can make use of basic_raw_socket::assign to assign the native socket created with socket( PF_CAN, SOCK_RAW, CAN_RAW ); This is what I have so far namespace can { class CanSocket { public: typedef boost::asio::ip::basic_endpoint<CanSocket> endpoint; typedef boost::asio::ip::basic_resolver_query<CanSocket> resolver_query; typedef