LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-28-2009, 06:19 AM   #1
quantt
Member
 
Registered: Aug 2008
Posts: 62

Rep: Reputation: 15
trouble with rt-app


hi every1,
I need a suggestion about rt-application.
if i did it and send data to my socke I've got "Non real time Singal:", why?
actyally i did it in the handler func.
Code:
siginfo_t* si;
    f(si->si_code == SI_QUEUE)
   {
        printf("User RTS Signal: %d\n", si->si_signo);
        printf("User PID: %d\n", si->si_pid);
        printf("User data: %d\n", si->si_value.sival_int);
 
    }
    else
    {
        printf("Non real time Singal:  \n"  );
    }
and I tried getting number of array from rt-signal by this snippet into handler func
Code:
siginfo_t *info;
int cbNumber = info->si_value.sival_int;
	printf("AIO operation %d completed returning \n",cbNumber);
unfortunately, I've got seg fault

I can't receiv data in this way
Code:
printf("the msg is: %s\n",  (char *)req->aio_buf);
i seems, because I use few sokets I should get signal what's from it comming and then receiv data in this way...
Code:
printf("the msg is: %s\n",  (char *)req[cbNumber].aio_buf);
 
Old 09-28-2009, 11:28 PM   #2
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
does it HAVE to be real time?
also your spelling isnt that good
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Check if an app is running and if it's not launch this app Coume Linux - General 3 07-28-2008 02:34 AM
bash - start app, [do stuff], kill started app MiniMe001 Programming 3 03-19-2008 03:06 PM
script or app mailcheck app from shell pandersson61 Linux - Software 1 03-24-2006 08:16 PM
Sound trouble - only works with one app at a time Zero-0-Effect Slackware 10 11-27-2003 01:12 AM
Trouble ticket app -- reccomendations m0rl0ck Linux - Software 4 04-30-2003 04:41 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration