> Hi Rob
>
> Have you ever managed to create an example for rt_select? There's a new
> version of RTDM in the pipe for RTAI, so I'm eager to try if rt_select works
> with RTAI too :)
>
> TIA::Bernhard
>
>
Hello,

Sorry, I haven't had time to try out the patch.  My schedule has been busy
lately; I'm not sure when I'll be able to try it.  I have been using a work
around in my current project until I find time.

Anyway, I wrote a small test program that will listen on multiple device
interfaces using select().  Pass the Ethernet device names you wish to
listen on as arguments to the program (more details are listed when you
execute the program with no arguments).  You should be able to use the
rtloopback device too if you're stuck with only one physical Ethernet
device.  The program will wait indefinitely for packets to arrive, once a
packet arrives on any of the interfaces it is listening on, it will recv()
the packet and print out a message saying it got it.  ^C will stop
execution.

Since select() doesn't work in my (old) Xenomai + RTnet environment not all
of the functionality of the code was tested.  I believe it should work
though.  If you have time to try it out, let me know how it goes :)

-Rob

Attachment: recv_multiple.tar.gz
Description: GNU Zip compressed data

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to