Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing Linux POSIX IPC message queue
    primarykey
    data
    text
    <p>I have to create single Server Process A and multiple client process(es). All should use Linux POSIX IPC message queue for data passing. Message(s) will flow in both direction. It is also possible that at time multiple client process(es) may have registered to Server Process A. </p> <p>Currently I'm using only one named Message queue which is created and Opened by Server Process A and used/opened (only) by client process(es). This works with two process scenario (i.e One server Process A and one client Process B) but doesn't work with multiple client process(es) and one server process.</p> <p>The problem i'm facing here is in design/logic. How should I de-multiplex Message at server process A from other client process(es) and also reply from server Process A should sent back to only respective client Process or may be it can sent back to all client process(es) but it must only be processed at respective client process.</p> <p>For example I'm just giving one scenario. Suppose Process A has created Message queue X. Process B and C is now coming up and also opening Message queue X. Now Process B sends request message to Message queue X but here the problem is Process A and Process C both will get awake with enqueue event. Here, How process C understand that Message doesn't belongs to it. </p> <ul> <li>IPC Message size is small like less than 128 bytes. </li> <li>IPc Message is define structure contains integer and bytes array. No double/float in structure. </li> <li>IPC Message queue is in NON_BLOCKING mode. </li> <li>No mandate on high performance. </li> <li>Language: C</li> <li>Compiler: GCC</li> <li>Platform/OS: Linux</li> <li>IPC Message queue: Only POSIX. </li> <li>I'm not suppose to use other IPC mechansim like System V messages or Unix local socket or Pipes etc. </li> </ul> <p>Please let me know if any more details required. </p> <p>Please suggest me solution(s) for this problem. </p> <p>FYI: I have already searched in database but i couldn't find similar question asked/answered already so please make sure before you mark it duplicate. If you find similar problem is already asked and answered then please provide me the link. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload