From: Nathan W. <fac...@th...> - 2003-07-01 15:32:36
|
On Tue, Jul 01, 2003 at 10:25:14AM -0400, Brian J. Murrell wrote: > In hacking some of the jabber protocol, I was looking for where I could > retrieve the resource portion of a jabber id. I went right back to where > the presence message is handled and it seems that the resource portion of > the id is simply not stashed away anywhere. > > Right away in jabber_handlepresence() the buddy information is parsed out > of the "from" attribute with the "incl_resource" flag set to false, so > "buddy" does not contain the resource: > > if((buddy = get_realwho(gjc, from, FALSE, &gjid)) == NULL) > return; > > gjid has it, but gjid does not seem to be saved anywhere for future > reference. It seems the only stashing that is done is that "buddy" is > inserted (without the resource) into the jabber buddies hash table. The jabber_buddy_data struct contains a GSList of jabber_resource_info, one for each resource that is signed on for that buddy. Nathan |