Use of Bus Attachment vs. Bus Object

asked 2015-08-05 10:50:54 -0700

Mr.Sand gravatar image

It is my understanding that a Bus Attachment is a representation of a device that is connected to the Alljoyn network. One example that the documentation gives for this is a smartphone. Bus Objects are then distinct features/capabilities that are present on the device. The structure of these are defined by the interface(s) they implement.

Is this understanding correct? Furthermore, what advantages/disadvantages are there for having multiple Bus Attachments vs. multiple Bus Objects (e.g. efficiency, capabilities, etc.). If my understanding of the classes are correct, then either a structure with multiple Bus Attachments or with one will be sensible for the project that I am working on.

edit retag flag offensive close merge delete


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

ry.jones ( 2015-08-07 11:58:03 -0700 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-08-10 01:12:31 -0700

praveenb gravatar image

updated 2015-10-20 16:58:04 -0700

In AllJoyn, BusAttachment is a representation of the application's connection to the AllJoyn Bus. BusAttachment APIs are provided by the AllJoyn Library (whether Standard / Thin).

BusAttachment APIs allow the application developer to communicate and authenticate with other applications connected to the AllJoyn Bus. BusObject represents the functionalities / capabilities that the application wants to expose to other applications.

It is quite possible that an application wants to structure its exposed functionalities and capabilities as multiple BusObjects. However, it is unlikely and not recommended to have multiple BusAttachments in one application, because the application needs just one connection to the Bus.

The following resources might be relevant:

Note: In case of Standard Core Library, having multiple BusAttachments in an application will involve consumption of resources viz. threads and file descriptors. In case of Thin Core Library, It is not possible to have multiple BusAttachments in an application. Using multiple BusAttachments in one application is not recommended.

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

Question Tools

1 follower


Asked: 2015-08-05 10:50:54 -0700

Seen: 215 times

Last updated: Oct 20 '15