Page 1 of 1
Message Queue API
Posted: Mon Mar 22, 2010 12:28 am
by ccfreak2k
The message queue API takes pointers but not a "size" argument, so what is the intended method of IPC?
Re: Message Queue API
Posted: Mon Mar 22, 2010 12:14 pm
by shagkur
Hi,
it's not intended to send arrays for instance. you rather send a pointer to a struct thru it with all the neccessary informations as member in it. Or even a simple data type like int to notify the other thread.
This allows for a wide use of this API.
regards
shagkur
Re: Message Queue API
Posted: Wed Mar 31, 2010 5:32 pm
by Izhido
Interesting... this means that the sending party is forced to send always the exact same structure format, all the time, for a specific message; also, that the receiving end will assume that the data comes *always* in that same format, all of the time again... is this correct?
Re: Message Queue API
Posted: Wed Mar 31, 2010 10:08 pm
by WinterMute
That really depends on you, it's a void pointer, it can point to anything, could encode RIFF chunks for all the library cares.