Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
yxylpj #1
Member since Aug 2014 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: MatriX XMPP: server can not support compress.
I have Develop a client and a server project.
When i use my client and Openfire ,it can compress.
When i use my client and my server, it can not compress.
There is my exmaple code below.
How can i solve this problem?
thanks!
The author has attached one file to this post:
XMPPTest.zip 573.1 kBytes
You have no permission to open this file.
This post was edited 2 times, last on 2014-08-26, 12:53 by yxylpj.
Avatar
Alex #2
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
To support stream compression on your server you have to implement XEP-0138 in your server:
http://xmpp.org/extensions/xep-0138.html

Sorry, but I have no example for this. Also when you use TLS then you normally don't need it. Because one feature of TLS is compression.

Alex
Avatar
yxylpj #3
Member since Aug 2014 · 3 posts
Group memberships: Members
Show profile · Link to this post
Thanks.
But I'm not familiar with MatriX XMPP, can you modify my example for me which is use TLS and SASL with DIGEST_MD5 Verific and it can compress?
This post was edited 2 times, last on 2014-08-27, 04:16 by yxylpj.
Avatar
Alex #4
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
no sorry, cant do that for you. That is a lot of work.
If you want to write a XMPP server you have to study the XMPP protocols in details and understand how they work.
Why do you want to write your own server and not use an existing on like Openfire, ejabberd, prosody Tigase etc...

I also would not use Digest-Md5 in any new software anymore. As a replacement SCRAM Sasl mechanism is suggested and also supported in MatriX. If you don't get this features working on your own then we can do custom development services for you. When this is something you are looking for then contact us directly.

Alex
This post was edited on 2014-08-27, 14:19 by Alex.
Avatar
yxylpj #5
Member since Aug 2014 · 3 posts
Group memberships: Members
Show profile · Link to this post
Thanks Alex.
If I want to write a XMPP server i have to handle what kind of things, can you tell me some of this?
It must open a lot of thread or not ?
Avatar
Alex #6
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
writing an XMPP server is a very complex task. That means even when our SDK does lots of work or you, you still have do to a lot and be an XMPP expert. You have t study and fully understand the XMPP RFCs.
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:
Forum: MatriX RSS