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. Jan
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
