I'm working on an Alljoyn service using the Thin Core, and I wanted to request a feature that shouldn't be too difficult, but will add much to the Thin Core.
I would like to be able to request a socket (or file descriptor, whatever you want to use) from a bus attachment that can be used with select() to be notified when data is available. This way, when an application is waiting for signals from multiple places (ie, alljoyn, the device itself, etc.), it doesn't have alternate pollings, or create separate threads; rather it can all be handled within the same select() call.
AJ_Status AJ_GetDescriptor(AJ_BusAttachment* bus, int* descriptor); could be an example where the file descriptor is set in the descriptor value.
I've temporarily done this (for a Linux platform) for my solution via: int ajSocket = ((int)bus->sock.rx.context); Since I know from target/linux/aj_net.c the context really just points to a socket. And, when the descriptor is set, I simply call AJ_UnmarshallMsg() to retrieve the data.