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);

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

> 
> The first option, MSG_DONTWAIT, gives an EAGAIN (-11) error. The second
> gives an ENOPROTOOPT (-92) error. Any idea what might be the cause of all
> this?

SO_RCVTIMEO is unsupported yet. [One might consider to add wrapping code
for this to the RTnet core...]

> 
> We're on a RTAI-3.3-cv patched kernel (2.6.15) using RTNET 0.93.

Please consider an update to 0.9.4 due to the "nice" bug I placed in
0.9.3. May hit you once in a while under heavy incoming traffic.

Jan

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
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