All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Daniel Schnell <daniel.schnell@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] RTCAN: multiple sockets on one device
Date: Thu, 23 Nov 2006 16:44:23 +0100	[thread overview]
Message-ID: <4565C1D7.9060509@domain.hid> (raw)
In-Reply-To: <DD39B5C3F4963040ADC9768BE7E430CB015D51BC@is-hdq-exchange.marel.net>

[-- Attachment #1: Type: text/plain, Size: 643 bytes --]

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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

  reply	other threads:[~2006-11-23 15:44 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 [this message]
2006-11-23 16:29   ` Wolfgang Grandegger
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=4565C1D7.9060509@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=daniel.schnell@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.