0

how to send some information data while requesting for session

asked 2015-04-02 20:34:20 -0700

vinypant gravatar image

Hi , I have a situation where i want to retrieve some information about the client which has requested to host for joining session using the API joinSession, is it possible to send some data like name ,image of the requester to the host so that host can retrieve it inside acceptSessionJoiner callback . I am using alljoyn Android SDK and i am referring chat sample .

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-04-02 21:41:32 -0700

congngale gravatar image

Hi vinypant,

I don't know which way that the client found and sent a request joining session to your host application. But I suggest that you should use about service which will help your client can advertise some information about itself(bus name, application ID, device ID,...) then your host application will receive the client's information and decide that accept the joining session request or not.

Thanks, Cong Nga Le

edit flag offensive delete publish link more

Comments

Hi Cong Nga Le, Thank you i used about service listener and i am able to receive data now but i am not able to figure out how to know if a client unique name is no longer available , is there some callback for that.

vinypant ( 2015-04-05 04:27:58 -0700 )edit

Hi Cong Nga Le, There is one unannounce api given in aboutobj using which client can unnannounce its details , but how to let others know that client has unannouced itself , is there some callback ? I am storing all the discovered clients in a map , so i need to know if someone has unannounded itself.

vinypant ( 2015-04-05 20:00:20 -0700 )edit

Hi vinypant, I don't know which binding language that you are using to implement but there are two ways(I knew) can figure out that the client is available or not. 1. In java binding(Android) language we have a callback is called "deviceLost", I don't know about other languages. 2. In C/C++ we use ping method to check the client. You can take a look on PingContext function on this example https://git.allseenalliance.org/cgit/core/alljoyn.git/tree/services/about/cpp/samples/AboutClientSample/AboutClientMain.cc?h=refs/heads/RB14.12

congngale ( 2015-04-05 20:16:38 -0700 )edit

Hi , I am using AllJoyn Android SDK only , thank you for the valuable answer. Which handler or listener i need to implement to get deviceLost callback ?

vinypant ( 2015-04-05 20:23:36 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-04-02 20:34:20 -0700

Seen: 50 times

Last updated: Apr 02 '15