LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   TIPC_PUBLISHED event being received twice for the same app (https://www.linuxquestions.org/questions/linux-networking-3/tipc_published-event-being-received-twice-for-the-same-app-4175428885/)

fzansari 09-24-2012 10:08 PM

TIPC_PUBLISHED event being received twice for the same app
 
In our system, an app A registers for the topology service provided by TIPC. It sends subscriptions for port names using TIPC_SUB_PORTS as the filter.
The topology service will send a TIPC_PUBLISHED event whenever the APP B that has this port name comes up.
The problem is we are getting multiple TIPC_PUBLISHED messages for the same app.
I went through the TIPC programming guide and figured thet the name subscription should be TIPC_SUB_SERVICE , this will ensure only one message per port.
"The value TIPC_SUB_PORTS causes the topology service to generate a
TIPC_PUBLISHED event for each port name or port name sequence it finds that
overlaps the specified port name sequence"
http://tipc.sourceforge.net/doc/Programmers_Guide.txt

I changed the subscription to TIPC_SUB_SERVICE but still see the same problem. Any idea what could be wrong?

fzansari 09-27-2012 12:48 PM

Is there no TIPC expert on this forum? Why does linux have things which noone is aware of.


All times are GMT -5. The time now is 10:38 PM.