Hi
On Tue, 3 Aug 2004, Jan Kiszka wrote:
Bret Yen-Ting Lin wrote:Hi Jan
How did you know that I will answer this mail ;)
because most of the time, you are the one replying my mails :D
I need to write a timer signal interrupt that does the timeout of a packet transmission for some error checking. Can I simply do
signal(SIGALRM, sig_alrm ); alarm(max_time_out); rt_sendto( .... )
Don't mix up non-real-time (the first two lines) with real-time (the last line) calls! This is a generic rule for RTAI, not just for RTnet. The only exeption is when running code in a LXRT soft real-time task - but this doesn't work with RTnet for now (see some previous postings).
what do you mean by LXRT soft real-time doesn't work with RTnet yet ?
or this is inappropriate ? I understand that recvfrom has timeout mechanism but it is not called upon sendto, which is hard to track the time eplapsed and build a singal handler
If you want some timer functionality, set up a real-time task and wait the appropriate time (e.g. rt_sleep[_until]). I don't see the problem yet why it is hard to track the elapsed time.
ar ~ I see, I didn't think of making another real-time task. I will try that out then ..
Jan
Thanks
Bret
------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ RTnet-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/rtnet-users

