On Thu, 2009-04-09 at 10:19 +0200, Dietmar Maurer wrote: > > What I recommend here is to place your local node id in the message > > contents (retrieved via cpg_local_get) and then compare that nodeid to > > incoming messages > > Why do you include the local node id into the message? I can compare the > local node id with the sending node id without that, for example: > > ... > cpg_local_get(cpg_handle, &local_nodeid); > ... > > static void cpg_deliver_callback (cpg_handle_t handle, > struct cpg_name *groupName, > uint32_t nodeid, > uint32_t pid, > void *msg, > int msg_len) > { > ... > if (nodeid == local_nodeid) > ... > } > > Or do I miss something? >
Sorry I forgot that was in the callback parameter. You should be good to go with the method proposed with your code. Lots of code, hard to remember all the interfaces :) Regards -steve > - Dietmar > > > > _______________________________________________ > Openais mailing list > Openais@lists.linux-foundation.org > https://lists.linux-foundation.org/mailman/listinfo/openais _______________________________________________ Openais mailing list Openais@lists.linux-foundation.org https://lists.linux-foundation.org/mailman/listinfo/openais