[jdev] _c2s_client_sx_callback

Remy HAREL remy.harel at GICM.FR
Fri Jun 11 05:06:57 CDT 2004



Matthias Wimmer wrote:

>Hi Remy!
>
>Remy HAREL schrieb am 2004-06-10 14:45:39:
>  
>
>> Yet, this is the result of a tcpdump listenning to the router. We can 
>>see the datas I added ( begins by Seq: ... ) and the to field, that I 
>>can know. But there is a "from" field in this stanzas, there's really no 
>>way to get it with NAD_AVAL ? If I could get the "to" attribute I should 
>>probably get the "from" attributes, shouldn't I ?
>>
>><route xmlns='http://jabberd.jabberstudio.org/ns/component/1.0' to='c2s' 
>>from='jabber.gicm.net' Seq:='db93e84
>>c6f209da33c7c1c56645fe4c0:2'><message xmlns='jabber:client' 
>>xmlns:sm='http://jabberd.jabberstudio.org/ns/session/1.0' 
>>to='rem at jabber.gicm.net/Gabber' type='chat' 
>>from='rem2 at jabber.gicm.net/Gabber' sm:c2s='7' 
>>sm:sm='4d93ce68dba15fe9aaa97ff98d687aed48a4dc4c'><body>test8</body></message></route>
>>    
>>
>
>This is a stanza you got from the router and that is from the session
>manager. Sure this one has a from attribute and it has been added by the
>session manager.
>  
>
Yes, we agree.

>But you asked why you don't get them in _c2s_client_sx_callback. This
>callback is called for stanzas, that come from the client, not from the
>router. These stanzas don't have from attributes.
>
So, although I  got the "to" attribute here ( rem at jabber... ) , there's 
no way to get the "from" field ( rem2 at jabber.... ) ?

Thanks again matthias, you're really cool and helpful with me.

-- 
Remy Harel - remy.harel at gicm.fr
G.I.C.M - Distributed Systems & IT
Linux Registered User #224740






More information about the JDev mailing list