Hi Marcello, Always happy to learn :) Thanks for letting me know what is to be done, I will try to upload the code over this weekend.
Thanks and regards Ajit ________________________________ From: Lioy, Marcello <[email protected]> Sent: Tuesday, May 3, 2016 8:26 PM To: Sajjan Raj, Ajit Cc: '[email protected]'; Kevin Kane; Greg Zaverucha Subject: RE: [Allseen-core] AJTCL Signal to all hosted sessions Appreciate your willingness. Helper library simply means taking the code that you wrote to do the session cast, wrapping it in a correctly named method in the appropriate file. On closer inspection of the original question, you could also integrate the code you wrote into AJ_MarshalSignal() and add a flag to invoke the session cast behavior. I have added Greg and Kevin as they may have some insight as to the best way to do this. You could start by sharing the code in Gerrit, and that could be the starting point for discussions. From: Sajjan Raj, Ajit [mailto:[email protected]] Sent: Tuesday, May 03, 2016 10:10 AM To: Lioy, Marcello <[email protected]> Subject: Re: [Allseen-core] AJTCL Signal to all hosted sessions Hi Marcello, I was successful in implementing it. Unfortunately i am not an experienced user and have very little knowledge on how to create the unit tests and the helper library, if you can guide me with the same it would be very helpful. Or else I can share my code and if someone can create the helper library they are most welcome. Thanks and regards Ajit ________________________________ From: Lioy, Marcello <[email protected]<mailto:[email protected]>> Sent: Tuesday, May 3, 2016 7:06 PM To: Sajjan Raj, Ajit Subject: RE: [Allseen-core] AJTCL Signal to all hosted sessions Ajit, If you have been successful and would like to submit the code to the project as a helper library (preferabluy with some unit tests) that would be most welcome! From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Sajjan Raj, Ajit Sent: Thursday, April 14, 2016 1:23 PM To: Chanet, Dominique <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> Subject: Re: [Allseen-core] AJTCL Signal to all hosted sessions Hi Dominique, Thank you so much. I am using 15.09 version. I will try to implement the suggested method. Thanks and regards Ajit ________________________________ From: Chanet, Dominique <[email protected]<mailto:[email protected]>> Sent: Thursday, April 14, 2016 10:01 AM To: Sajjan Raj, Ajit; [email protected]<mailto:[email protected]> Subject: Re: [Allseen-core] AJTCL Signal to all hosted sessions The SESSION_ID_ALL_HOSTED functionality is not implemented in thin client. You should implement the logic to sessioncast to each connected client yourself. If you’re using version 15.09 and up, the thin client code base helps you somewhat: AJ_BusAttachment.sessions is a linked list of AJ_Session structures, where each AJ_Session describes an ongoing session. If you iterate through this list and emit the signal for each session where AJ_Session->host != 0, you have equivalent behavior to SESSION_ID_ALL_HOSTED. If you’re using an earlier version, you’ll have to write up the bookkeeping logic yourself, I’m afraid. -Dominique From: <[email protected]<mailto:[email protected]>> on behalf of "Sajjan Raj, Ajit" Date: Wednesday 13 April 2016 at 17:09 To: "[email protected]<mailto:[email protected]>" Subject: [Allseen-core] AJTCL Signal to all hosted sessions Hi, I am trying to send a Change of value Signal to all sessions my AllJoyn thin app is connected to using : AJ_MarshalSignal(&Bus, &sig_out, SIGNAL_ STATECHANGED, NULL, 0, AJ_FLAG_GLOBAL_BROADCAST, 0); However the Clients (running on AJSCL) are not able to receive the Signal. But when I send it to a particular session using : AJ_MarshalSignal(&Bus, &sig_out, SIGNAL_ STATECHANGED, NULL, session_ID, AJ_FLAG_GLOBAL_BROADCAST, 0); The Client with the specified session_ID is able to receive it. Is there any flag in the Thin Client Version similar to the BusAttachment.SESSION_ID_ALL_HOSTED I do not want to send it as a Sessionless Signal. Is there any other way all the joined session can receive the Signal? Thanks and regards Ajit
_______________________________________________ Allseen-core mailing list [email protected] https://lists.allseenalliance.org/mailman/listinfo/allseen-core
