C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 09-28-2009, 05:21 AM   #1
Registered User
 
Join Date: Jan 2009
Posts: 71
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);
quantt is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
non-MFC DLL with MFC app question. Kempelen Windows Programming 10 08-20-2008 07:11 AM
best program to start gooddevil Networking/Device Communication 4 05-28-2004 05:56 PM
Need help migrating console app to windows app DelphiGuy C++ Programming 1 03-14-2004 07:05 PM
pasword app GanglyLamb C Programming 2 06-07-2003 10:28 AM
How do I make my Linux app standalone? Joda C++ Programming 2 11-27-2002 04:53 AM


All times are GMT -6. The time now is 10:27 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22