[JDEV] jabber:iq:roster question

Ryan Eatmon reatmon at ti.com
Tue Dec 28 10:15:38 CST 1999


Let me explain why I want the information.  I'm trying to write the Perl
Docs for the Net::Jabber modules as I go and I have no idea what to
write for this because I don't understand how they work myself.  A bit
of a problem.

But if I grasp the last message you sent here is what they do:

subscription is set by the server, unless the client sets it to "none",
then the person is removed from the roster.  Assumption: So subscription
shows the status of the subscriptions between you and that person. 
"from" means that you get his presence, but how does not get yours. 
"to" means that he gets your presence, but you do not get his.  "both"
means that you get his presence, and he gets yours.  "none" means that
he does not get your presence and you do not get his.  Or, better said,
this table:

               You
            GP    DGP
         +------+------+
     GP  | both |  to  |
Him      +------+------+
     DGP | from | none |
         +------+------+

GP = Gets <presence/>
DGP = Doesn't get <presence/>

ask is set by the server only, but can be read by the client to show
that the other person has not authorized your subscribe/unsubscribe
request.

Am I right?


And if the above is correct then the <subscribe/>, <unsubscribe/> tags
are requests to the JID, and <subscribed/>, <unsubscribed/> are the
expected responses from the JID.  That's important to know for a client.

-- 

Ryan Eatmon                reatmon at ti.com
-----------------------------------------
Mixed Signal Product Development EDA Team




More information about the JDev mailing list