Multiple Bus object listner in windows

asked 2015-01-13 04:48:35 -0700

sathis gravatar image

updated 2015-01-13 20:45:21 -0700


How to create single session for all alljoyn application Any sample codes

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-01-14 15:40:24 -0700

Nikhil Dabhade gravatar image

Hi sathis,

For all AllJoyn applications to communicate over a single session the session type while binding a session should be multipoint. This can be enabled by passing in TRUE to the session opts that is passed in to the bind session port call. https://allseenalliance.org/docs/api/cpp/classajn_1_1_session_opts.html

An application would have to be made the host to which all other clients join. If you would like to make the host selection dynamic then you could go about it by using the GUID of the application. The application with the smallest/largest guid can be made the session host and all other applications can join the multipoint session hosted by it.

You could look at any sample code under samples. Assuming Java an example would be https://git.allseenalliance.org/cgit/core/alljoyn.git/tree/alljoyn_java/samples/android/basic/service/src/org/alljoyn/bus/samples/basicservice/Service.java

Here you would have to make

sessionOpts.isMultipoint = true;

Let me know if you have any questions


edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-01-13 04:48:35 -0700

Seen: 41 times

Last updated: Jan 14 '15