Jan Kiszka wrote:
Daniel Schnell wrote:
Hi,
If one opens two sockets to one CAN port and wants to use one socket
file descriptor for reading and the other for writing, is it possible to
limit the writing socket to _write only_, so it doesn't receive messages
?

Option 1: Do not bind the socket, use sendto/sendmsg for transmitting
(send requires binding).

Option 2: Register an impossible filter for the write-only socket. This
is suboptimal ATM. Actually we should allow registering an empty filter
list for this purpose. This has been recently discussed on the socketcan
list, but I'm not aware of any concrete result.

I have committed an update allowing the registration of an empty filter list. Have a look to the utility program "rtcansend.c" to see how to use it.

Wolfgang.


_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to