From: Wolfgang Grandegger <wg@domain.hid>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] RTCAN: multiple sockets on one device
Date: Sun, 03 Dec 2006 16:49:26 +0100 [thread overview]
Message-ID: <4572F206.8050708@domain.hid> (raw)
In-Reply-To: <4565C1D7.9060509@domain.hid>
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.
prev parent reply other threads:[~2006-12-03 15:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-23 12:11 [Xenomai-help] RTCAN: multiple sockets on one device Daniel Schnell
2006-11-23 15:44 ` Jan Kiszka
2006-11-23 16:29 ` Wolfgang Grandegger
2006-12-03 15:49 ` Wolfgang Grandegger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4572F206.8050708@domain.hid \
--to=wg@domain.hid \
--cc=jan.kiszka@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.