trouble with rt-app
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.
and I tried getting number of array from rt-signal by this snippet into handler func
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);
printf("Non real time Singal: \n" );
unfortunately, I've got seg fault
int cbNumber = info->si_value.sival_int;
printf("AIO operation %d completed returning \n",cbNumber);
I can't receiv data in this way
i seems, because I use few sokets I should get signal what's from it comming and then receiv data in this way...
printf("the msg is: %s\n", (char *)req->aio_buf);
printf("the msg is: %s\n", (char *)req[cbNumber].aio_buf);