All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Henri Roosen <henriroosen@gmail.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] How setup receive-timeout for rt_dev_recvfrom?
Date: Thu, 28 Jun 2012 10:20:01 +0200	[thread overview]
Message-ID: <4FEC13B1.3040609@xenomai.org> (raw)
In-Reply-To: <CANKLDmuw2sM5PD0G1YvObij1dZvdm743hEMMP=6Ljg+k2ZSOQQ@mail.gmail.com>

On 06/28/2012 10:05 AM, Henri Roosen wrote:
> Hi Xenomai-list,
> 
> I am using the native API and RTDM to read from a RTNet realtime interface.
> This all works, however, I need a timeout on the rt_dev_recvfrom.
> 
> As there is no rt_dev_select function, I tried to setup a receive
> timeout, similar to how the XDDP examples do:

The posix skin has select, which can be used by native skin threads. You
have to use the result of socket, and not rt_dev_socket as the fd to put
in the fd_set, but apart from that, it should work.

-- 
					    Gilles.


  reply	other threads:[~2012-06-28  8:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-28  8:05 [Xenomai] How setup receive-timeout for rt_dev_recvfrom? Henri Roosen
2012-06-28  8:20 ` Gilles Chanteperdrix [this message]
2012-07-03 18:08   ` Henri Roosen
2012-07-03 21:44     ` Gilles Chanteperdrix

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=4FEC13B1.3040609@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=henriroosen@gmail.com \
    --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.