Not logged in. · Lost password · Register
Forum: MatriX RSS
Possibility to write component and server with MatriX
Page:  1  2  next
Avatar
tambunanw #1
User title: Welly
Member since Jul 2011 · 57 posts · Location: Jakarta
Group memberships: Members, Premium
Show profile · Link to this post
Subject: Writing Component and Server
Just curious,

Is that possible to write component and server with MatriX SDK ?

is there's any sample that i can look at?
Avatar
Alex #2
Member since Feb 2003 · 4328 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by tambunanw:
Is that possible to write component and server with MatriX SDK ?

yes it is.

Quote by tambunanw:
is there's any sample that i can look at?

There is an example for components. But there is none for servers yet.

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

I want to make sure about something again. Is that possible to write a xmpp server engine like open fire (minus web/control panel) with MatriX ?

Could you please give a sample code with that please ? i've seen there's a sample for agsXmpp but is that same with MatriX
Avatar
Alex #4
Member since Feb 2003 · 4328 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Of course you can. Sorry there is no example yet for MatriX yet. But it works exactly the same as in agsXMPP. So you have only to change some class names. It should be pretty easy to port the example to MatriX. When you have problems just ask here.

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

I've already port the agsXMPP sample to MatriX. I couldn't find the appropriate method for util.Hash.HexToString(buf);. I create my own implementation for that.

I've attached the sample. Could you please check it out. If there's something wrong or any improvement for that.
And could you please give a direction on how to implement server correctly ? documentation, spesification or guidance ?

Thanks
The author has attached one file to this post:
server.zip 16.5 kBytes
You have no permission to open this file.
Avatar
Alex #6
Member since Feb 2003 · 4328 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by tambunanw:
I've already port the agsXMPP sample to MatriX. I couldn't find the appropriate method for util.Hash.HexToString(buf);. I create my own implementation for that.

Its in the MatriX.Util.Hash class when you use a current version. It was provate before and I made it public on request of a customer.

Quote by tambunanw:
I've attached the sample. Could you please check it out. If there's something wrong or any improvement for that.
And could you please give a direction on how to implement server correctly ? documentation, spesification or guidance ?
I will check the sources and then come back to you.

You find the specs here:
http://xmpp.org/xmpp-protocols/internet-drafts/

You need RFC-6120 and RFC-6121. Unline other specifications the XMPP specs are written very well and are very easy to understand. They inlcude lots of examples.

Alex
Avatar
Alex #7
Member since Feb 2003 · 4328 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I have updated the server example to MatriX. The sample is attached.

Alex
The author has attached one file to this post:
Server.zip 9.3 kBytes
You have no permission to open this file.
Avatar
tambunanw #8
User title: Welly
Member since Jul 2011 · 57 posts · Location: Jakarta
Group memberships: Members, Premium
Show profile · Link to this post
Thanks Alex. That's great. I will take a look at it
Avatar
tambunanw #9
User title: Welly
Member since Jul 2011 · 57 posts · Location: Jakarta
Group memberships: Members, Premium
Show profile · Link to this post
Alex,

Have you implementing an extension for building the Server yet ? or there's some work in progresss ?
Previously i've search in this web that your team working on that ? How's the progress and when it will be released ?
Avatar
Alex #10
Member since Feb 2003 · 4328 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by tambunanw:
Have you implementing an extension for building the Server yet ? or there's some work in progresss ?
Previously i've search in this web that your team working on that ? How's the progress and when it will be released ?

There is some work in progress. But there are many other task with higher priorities.

Alex
Avatar
tambunanw #11
User title: Welly
Member since Jul 2011 · 57 posts · Location: Jakarta
Group memberships: Members, Premium
Show profile · Link to this post
Previously i've seen the specs. i think there are a lot of thing need to be considered to create the server with the library. Is there's any idea what's the best way to divide the module or something ?
Avatar
Alex #12
Member since Feb 2003 · 4328 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
yes writing a server is a very complex task. But in many business applications you don't need the complete spec, but only a subset of it.
Many of or customers wrote their own simple server based on MatriX and implemented only the required features.

Yes it makes sense to divide the server in modules. In the servers I wrote I always had a several module for each XMPP name namespace.

  • core module with session and socket stuff
  • SASL authentication module
  • resource binding module
  • roster module
  • presence module
  • etc...

I am using a plugin technology for the modules. So I can plugin new modules without any changes to the core modules. or replace each module with another one which implements the same functionality.

But there may be many other software design which work well or even better ;-)

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

So, You've already write a server ?  :-D

Could we please buy the source code from you ? or something like that ? I want to know if that's possible and how much does it cost.

Thanks.
Avatar
Alex #14
Member since Feb 2003 · 4328 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by tambunanw:
So, You've already write a server ?  :-D

yes I did.

Quote by tambunanw:
Could we please buy the source code from you ? or something like that ? I want to know if that's possible and how much does it cost.

Please contact us directly by email.

Alex
Avatar
tambunanw #15
User title: Welly
Member since Jul 2011 · 57 posts · Location: Jakarta
Group memberships: Members, Premium
Show profile · Link to this post
Done
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:
Page:  1  2  next
Forum: MatriX RSS