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: Thu, 23 Nov 2006 17:29:43 +0100 [thread overview]
Message-ID: <4565CC77.608@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
>> ?
Note that the messages are aways received and handled by the ISR. If
nobody is waiting on messages defined by the filter definitions, they
will be discarded.
> Option 1: Do not bind the socket, use sendto/sendmsg for transmitting
> (send requires binding).
Yes, this will avoid checking one unnecessary filter definition (a bit
less overhead). But using just one socket would be fine as well ;-).
> 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.
Oliver answered and liked the idea, but there is no agreement yet.
Wolfgang.
next prev parent reply other threads:[~2006-11-23 16:29 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 [this message]
2006-12-03 15:49 ` Wolfgang Grandegger
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=4565CC77.608@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.