All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Kai Bollue <mlist1@bollue.de>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Context Switch with rtnet
Date: Fri, 21 Sep 2012 12:02:21 +0200	[thread overview]
Message-ID: <505C3B2D.3080701@xenomai.org> (raw)
In-Reply-To: <505C3A52.9050107@bollue.de>

On 09/21/2012 11:58 AM, Kai Bollue wrote:
> On 14.09.2012 17:01, Franz Engel wrote:
>> Hi,
>>
>> I've a little problem. I'm using the rtnet.h-header and the following function:
>> ret = recvfrom ( ethernetConnection.sock, &recBuffer, sizeof ( recBuffer ),0, ( struct sockaddr * ) &ethernetConnection.dest_addr,&destlen );
> 
> Hi,
> 
> stupid question: But you do use an rtnet socket, not a normal one, do 
> you? In this case, shouldn't it be rt_dev_recvfrom(...)?

When using the posix skin, recvfrom is substituted at compilation (or
more exactly link-edit) time with __wrap_recvfrom, implemented in
libpthread_rt.so, allowing to work with real-time sockets.

(But that works only if you used socket too instead of rt_dev_socket).

-- 
					    Gilles.


  reply	other threads:[~2012-09-21 10:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-14 15:01 [Xenomai] Context Switch with rtnet Franz Engel
2012-09-16 14:29 ` Jan Kiszka
2012-09-20 15:24   ` Franz Engel
2012-09-20 17:33     ` Wolfgang Grandegger
2012-09-20 17:36     ` Gilles Chanteperdrix
2012-09-21  9:58 ` Kai Bollue
2012-09-21 10:02   ` Gilles Chanteperdrix [this message]
2012-09-21 10:08     ` Kai Bollue
     [not found] <mailman.1.1348308001.4459.xenomai@xenomai.org>
2012-09-22 13:20 ` Franz Engel
2012-09-22 13:33   ` Gilles Chanteperdrix
2012-09-22 13:55     ` Franz Engel
2012-09-22 14:02       ` Gilles Chanteperdrix
2012-09-22 13:43   ` 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=505C3B2D.3080701@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=mlist1@bollue.de \
    --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.