Am Donnerstag 10. August 2006 17:24 schrieb Jan Kiszka:
> Evert Lammerts wrote:
> > Hi,
> >
> > We're trying to use RTnet from a kernel module within a real-time thread,
> > starting with only recieving messages. As far as I can see (but other
> > suggestions are very welcome) our options are to call rt_dev_recv with
> > the MSG_DONTWAIT flag or setting the SO_RCVTIMEO socket option with
> > rt_dev_setsockopt (for SOL_SOCKET specified and struct timeval from
> > time.h).
>
> int64_t timeout;
>
> ioctl(socket, RTNET_RTIOC_TIMEOUT, &timeout);

Not rather rt_dev_ioctl(...)?

>
> timeout = 0: infinite waiting
> timeout < 0: non-blocking
> timeout > 0: relative timeout

Sebastian

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to