Questions tagged [mqueue]

38 questions
0
votes
1 answer

passing structures in messages of mqueue

I am trying to read an IP/RAW socket packet with its parameters (such as char pointer to the IP packet and its size) put that in to a mqueue in WRONLY mode and retrieve the same parameters from the queue in RDONLY mode. I am using structures for the…
Ashok Kumar
  • 21
  • 1
  • 5
0
votes
0 answers

mq_receive: size of buffer

is there something i failed to see? My project crashes everytime when it come to this function: #define SMW 29 float smw getWert(&smw, SMW, rsq,rrq) SMW ist the Number of the port (kanal), i want to get "smw" int MainWindow::getWert(float *erg,…
QtNewbie
  • 1
  • 3
0
votes
1 answer

mq_receive returning EAGAIN when data is present

I have an mqueue which has 2 messages in it but the call to mq_receive will not pull data. I don't have any previous experience with this message queue so forgive my ignorance. I believe the send side is working fine as echoing the "file" does show…
lostdev
  • 736
  • 8
  • 23
0
votes
1 answer

Find and close/unlink message queues in the system

I have a SLES-11 machine on which I am not the root where I am building software code that makes extensive use of message queues. Due to some bugs, Now have an error: mq_open: Too many open files I am using the command ipcs -a but I do not see my…
boffin
  • 639
  • 2
  • 13
  • 26
0
votes
2 answers

mqueue: message too long

When I run the following program i have always the error message "Message too long". Why? this is the source: #define NAME "/q" #define SIZE 16 void main() { mqd_t mq; char buffer[SIZE+1]; struct mq_attr attr; attr.mq_flags = 0; attr.mq_maxmsg =…
0
votes
1 answer

Sending void* object through message queue[linux]

So ,i implemented my own mpi library(a simplified version) and I need to send/receive between processes some data. MPI_Send looks like this(void *buf,int count,datatype data,etc...). SO this means i need to send count elements of type…
user1272703
  • 89
  • 1
  • 2
  • 9
0
votes
1 answer

QNX system hangs while shutting down using phshutdown

While shutting down QNX neutrino using phshutdown(either reboot or shutdown),system hangs while killing message queues(mqueue).the message displayed on screen is Shutting down service providers(mqueue) What could be the reason for this ?
Rajesh
  • 356
  • 1
  • 5
  • 15
0
votes
1 answer

redirect snmptrapd to postgres or message queue

I have a need to collect snmptraps and display them in a web interface. The application already includes *ruby on rails *linux *delayed_job (for queueing) *postgresql *A few cron jobs that do snmp queries Now I need to run something like snmptrapd…
Tommie Jones
  • 957
  • 1
  • 16
  • 37
1 2
3