From: Brian J. M. <br...@in...> - 2003-07-01 14:28:55
|
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. So am I missing something or is the resource portion of the jabber id simply not saved anywhere? If I am missing something and it is saved somewhere, where is that? Thanx, b. |