
Hello! I'm currently working with socket CAN under Linux 2.6.25 and was wondering how I can use these with the very handy boost ioservice facility. Socket CAN is simply a raw socket created like this: socket(PF_CAN, SOCK_RAW, CAN_RAW); Does someone maybe already have a socket CAN implementation for Boost? Is there a way I can add a socket descriptor to an IOService and get a callback when the socket becomes readable, so that I can read data from the socket? The peculiarity about raw CAN sockets is, that when they become readable, you don't read the payload of the received CAN frame(s) but a struct that represents the received CAN frame. So it behaves like a datagram socket: You only read full frames. What I actually need is a notification mechanism using the IOService facility. Best regards, Andreas