From AboutData to ProxyBusObject missing SessionId

asked 2015-09-22 09:43:54 -0700

anonymous user


updated 2015-09-22 09:44:16 -0700

From the ajn::AboutListener I got all the about data from an object. But looking at the ProxyBusObject: ProxyBusObject (BusAttachment &bus, const char *service, const char *path, SessionId sessionId, bool secure=false) I know everything I need, except the SessionId.

-> How to get the SessionId to get a ProxyBusObject for an Object I discovered over the AboutListener ? (or is there a better way to discover objects and get ProxyBusObjects for them?)

edit retag flag offensive close merge delete


you should ask on the mailing list. https://lists.allseenalliance.org/mailman/listinfo/allseen-core

ry.jones ( 2015-09-23 15:10:04 -0700 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-09-24 00:22:13 -0700

praveenb gravatar image

About is a discovery mechanism by which providers can announce their capabilities (a.k.a the interfaces they implement) and seekers can find peers with specific capabilities.

After the discovery phase between two peers (provider and seeker) is complete, a session needs to be established using JoinSession API between these two peers. Once the session formation is complete which results in a sessionId, a ProxyBusObject can be created using that sessionId for further communication.

JoinSession API requires the following:

  • Name of the peer which can be obtained from AboutListener::Announced callback
  • SessionPort to which the peer has bound to which can also be obtained from AboutListener::Announced callback

The sample applications that can help are:

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

Question Tools

1 follower


Asked: 2015-09-22 09:43:54 -0700

Seen: 54 times

Last updated: Sep 24 '15