You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Matus Zamborsky <za...@b-ideas.eu> on 2009/07/16 09:51:29 UTC

[Vysper] stanza receiving and relaying

I read rfc 3920 and 3921 and I understand the routing behind presence, 
messages and iqs. I also read the code of StanzaRelay and 
StanzaReceiver, but I could not find the difference between routing 
presence, messages and iqs. Is there something I dont see, or this part 
of Vysper is not fully written?


Re: [Vysper] stanza receiving and relaying

Posted by Bernd Fondermann <bf...@brainlounge.de>.
Matus Zamborsky wrote:
> You are right. I will write some tests.
> What I mean is that for example when server receive presence stanza, it
> must route it to every subscribed user. 

This is implemented. (But since server federation is not implemented, a
remote user cannot subscribe and cannot receive presence from a Vysper
server instance.)

> Then for example there is
> difference between routing message of type 'chat' and 'headline'. 

No, as far as I know, the implementation does not differentiate by
presence types currently. PresenceHandler (and it's helpers) is the
relevant class here.

  Bernd

Re: [Vysper] stanza receiving and relaying

Posted by Matus Zamborsky <za...@b-ideas.eu>.
You are right. I will write some tests.
What I mean is that for example when server receive presence stanza, it 
must route it to every subscribed user. Then for example there is 
difference between routing message of type 'chat' and 'headline'. Are 
these differences in routing allready implemented?

Bernd Fondermann  wrote / napĂ­sal(a):
> Matus Zamborsky wrote:
>   
>> I read rfc 3920 and 3921 and I understand the routing behind presence,
>> messages and iqs. I also read the code of StanzaRelay and
>> StanzaReceiver, but I could not find the difference between routing
>> presence, messages and iqs. Is there something I dont see, or this part
>> of Vysper is not fully written?
>>     
>
> Routing is mostly done based on a stanza's "to"-attribute. Stanza
> handling is mostly done StanzaHandlers. The specific case of processing
> a stanza which is going to be relayed to another server (e.g. "routed
> through") by a Handler is currently not there I think.
>
> What is your specific use case?
>
> I probably would suggest to build a test app for this instead of only
> reading source code.
>
>   Bernd
>
>
>   



Re: [Vysper] stanza receiving and relaying

Posted by Bernd Fondermann <bf...@brainlounge.de>.
Matus Zamborsky wrote:
> I read rfc 3920 and 3921 and I understand the routing behind presence,
> messages and iqs. I also read the code of StanzaRelay and
> StanzaReceiver, but I could not find the difference between routing
> presence, messages and iqs. Is there something I dont see, or this part
> of Vysper is not fully written?

Routing is mostly done based on a stanza's "to"-attribute. Stanza
handling is mostly done StanzaHandlers. The specific case of processing
a stanza which is going to be relayed to another server (e.g. "routed
through") by a Handler is currently not there I think.

What is your specific use case?

I probably would suggest to build a test app for this instead of only
reading source code.

  Bernd