Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Avatar
tambunanw #1
User title: Welly
Member since Jul 2011 · 57 posts · Location: Jakarta
Group memberships: Members
Show profile · Link to this post
Subject: Server to Server Communication
Hi Alex,


1. Is multihops message passing between client from one server to another server via intermediary server possible using XMPP ?

Client A -> Server A -> Server B -> Server C -> Client C

can we do some workaround about this using internal server component ? does this violates the specs ?

2. can we collect the presence to one server to another centralized server using internal component server ?
This one is only required for centralized monitoring.


Need your advice
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by tambunanw:
1. Is multihops message passing between client from one server to another server via intermediary server possible using XMPP ?

Client A -> Server A -> Server B -> Server C -> Client C

no, not by default. In XMPP you never have multiple server hops. When client1@server1 sends a stanza to client2@server2 then the flow is always the following.

client1 => server1 => server2 => client2

Quote by tambunanw:
can we do some workaround about this using internal server component ? does this violates the specs ?
There is always a workaround. But because I don't have any details about your use what and what you are trying to achieve I have no suggestions right now.

Quote by tambunanw:
2. can we collect the presence to one server to another centralized server using internal component server ?
This one is only required for centralized monitoring.
when your component is subscribed to all your users then it gets the presence of all your users. You can do the same with a bot client.
Collecting presences is probably easier when you modify the code of your server, or write a module or plugin for your server when the server API allows this.

Alex
Avatar
tambunanw #3
User title: Welly
Member since Jul 2011 · 57 posts · Location: Jakarta
Group memberships: Members
Show profile · Link to this post
hi Alex,

I want to create a stanza like this one for s2s communication. the namespace is jabber:server.

  1. <stream:stream
  2.      from='im.example.com'
  3.      to='example.net'
  4.      version='1.0'
  5.      xmlns='jabber:server'
  6.      xmlns:stream='http://etherx.jabber.org/streams'>

I can't use MatriX.Xmpp.Client for that, because it has jabber:client in it's namespace
Is there any way to change that ?
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
  1. /// <summary>
  2. /// Represents a XMPP Server to server stream header
  3. /// </summary>
  4. public class Stream : Base.Stream
  5. {
  6.     public Stream()
  7.     {
  8.         SetAttribute("xmlns", Uri.SERVER);
  9.     }
  10. }

I make all the server classes public. So you can use them when I upload a new release tonight in the MatriX.Xmpp.Server namespace.

Alex
Avatar
tambunanw #5
User title: Welly
Member since Jul 2011 · 57 posts · Location: Jakarta
Group memberships: Members
Show profile · Link to this post
ok Alex,

thanks a lot. i hope you can notify me when that's available.

:)
Avatar
Alex #6
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by tambunanw on 2012-04-24, 09:00:
1335250829

I have uploaded a new binary build.
Avatar
tambunanw #7
User title: Welly
Member since Jul 2011 · 57 posts · Location: Jakarta
Group memberships: Members
Show profile · Link to this post
thanks alex. :)
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters: