boost::asio over SocketCAN

前端 未结 2 1125
青春惊慌失措
青春惊慌失措 2021-02-20 18:35

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 inter

2条回答
  •  甜味超标
    2021-02-20 19:10

    The solution is to use posix::stream_descriptor.

    Just open the native socket, bind and then use posix::basic_stream_descriptor::assign.

提交回复
热议问题