You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's an error here. Select does not return the size of the queue, only the number of file descriptors that are ready for reading/writing. So if you want to read all the messages you need to repeat the readMessage until it returns 0 bytes read. Or maybe you can do a ioctl call to FIONREAD, but I have not tested this
libsockcanpp/src/CanDriver.cpp
Line 111 in 621383e
There's an error here. Select does not return the size of the queue, only the number of file descriptors that are ready for reading/writing. So if you want to read all the messages you need to repeat the readMessage until it returns 0 bytes read. Or maybe you can do a ioctl call to FIONREAD, but I have not tested this
https://man7.org/linux/man-pages/man2/select.2.html
The text was updated successfully, but these errors were encountered: