Not logged in. · Lost password · Register
Forum: MatriX RSS
Page:  1  2  next
Avatar
danny_dong #1
Member since Apr 2011 · 9 posts
Group memberships: Members
Show profile · Link to this post
Subject: WP7 now supports Socket!
hi Alex, bet you have noticed this. Any ideas to make a Socket version of MatriX for WP7?

A lot of exciting features have been added in WP7. Cool~~
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
They just have announced at the MIX that Windows Phone will support sockets with the next update. It does not support them now. And there is even no SDK available yet for developers which includes the new stuff.
As soon as the new SDK with socket support is available I will work on sockets.

Alex
Avatar
danny_dong #3
Member since Apr 2011 · 9 posts
Group memberships: Members
Show profile · Link to this post
Yes the new SDK will be released this May. Can't wait for that~
Avatar
Grgs #4
Member since Apr 2011 · 6 posts
Group memberships: Members
Show profile · Link to this post
Yes!

I'm excited too!

And not only sockets, there will be XNA + SL in same project, full camera API, gyro api, better sensor api, SQL database, new emulator things, and so on!
Avatar
Alex #5
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
great news: http://www.ag-software.net/2011/05/25/windows-phone-mango/
Avatar
Grgs #6
Member since Apr 2011 · 6 posts
Group memberships: Members
Show profile · Link to this post
You really fast implemented support for socket in MatriX lib.
But, can I upgrade my phone to Mango and use socket support? (I think no).

I have to demonstrate my project on real device so I'll still use BOSH!

If my project become commercial (it's also part of thesis), I'll talk to ericsson guys to buy your SDK.

It's really good, and it'll be better if You implement XML documentation (class/methods/event descriptions) which I can see from code!

So thank you again on demo key!
Avatar
Alex #7
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by Grgs:
You really fast implemented support for socket in MatriX lib.
But, can I upgrade my phone to Mango and use socket support? (I think no).

You can only use Mango on the emulator until Microsoft updates the devices in Q4 this year.
Avatar
GeKa #8
Member since Jun 2011 · 5 posts
Group memberships: Members
Show profile · Link to this post
I'm trying to use beta version of MatriX for mango and find out some strange behaviors in login phase:
1 - looks like login does not work if password contains '-'chars.
2 - It's going to login with empty username if following code sequence is used:
            xmppClient.Username = "username";
            xmppClient.Password = "password";
            xmppClient.Compression = false;
            xmppClient.RegisterNewAccount = false;
            xmppClient.AnonymousLogin = false;
Are all these by design or these are bugs that will be fixed in release version?
Avatar
Alex #9
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
can you please post your Xml log and a username/password combination which fails?
Then I can try to debug this problem.

Alex
Avatar
GeKa #10
Member since Jun 2011 · 5 posts
Group memberships: Members
Show profile · Link to this post
Regarding first issue:
username:"3498-8275",
password:"fa3f89c6-2bfc-416a-8c55-d204c7497f7b"
Xml log for second one:

Send
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="***.com" version="1.0" >
Recieve
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="***.com" id="c8fbe56a-e85d-481b-9fcc-dd957699447a" version="1.0" xml:lang="en" >
Recieve
<stream:features xmlns:stream="http://etherx.jabber.org/streams">
  <ver xmlns="urn:xmpp:features:rosterver" />
  <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
  <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
    <mechanism>PLAIN</mechanism>
    <mechanism>DIGEST-MD5</mechanism>
    <mechanism>CRAM-MD5</mechanism>
    <mechanism>ANONYMOUS</mechanism>
  </mechanisms>
  <register xmlns="http://jabber.org/features/iq-register" />
  <auth xmlns="http://jabber.org/features/iq-auth" />
</stream:features>
Send
<auth mechanism="DIGEST-MD5" xmlns="urn:ietf:params:xml:ns:xmpp-sasl" />
Recieve
<challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
here is following string encoded in base64:
realm="***.com",nonce="Dgd2hV/9aZAibDqBipxeWBO7UDO5LSoCucMJslRh",qop="auth",charset=utf-8,algorithm=md5-sess
</challenge>
Send
<response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
here is following string encoded in base64:
username="",realm="***.com",nonce="Dgd2hV/9aZAibDqBipxeWBO7UDO5LSoCucMJslRh",cnonce="72335551346c3971486c4d48616e7045396c6d75575237526271746266663545",nc=00000001,qop=auth,digest-uri="xmpp/***.com",charset=utf-8,response=34822179eeba77a1266c88212fda686e
</response>
Recieve
<failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  <not-authorized />
</failure>
<failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  <not-authorized />
</failure>
Avatar
Alex #11
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I fixed the second one in my sources. Its causes by the setter of AnonymousLogin.

I don't see why DIGEST-MD5 auth should fail when there are dashes in the password. Dashes are no special characters in DIGEST-MD5 and should cause no problems. Have to tried existing XMPP clients with such passwords? Which server software are you running?

Alex
Avatar
GeKa #12
Member since Jun 2011 · 5 posts
Group memberships: Members
Show profile · Link to this post
We are using Tigase xmpp server.
I can't login when password contains dashes but it works if I remove dashes from password. When we used passwords with dashes for another platforms (i.e. Android, iPhone, Blackberry and WebOS) it works. So I suggested this is Matrix lib issue.
Avatar
Alex #13
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post #10
Quote by GeKa:
username:"3498-8275",
password:"fa3f89c6-2bfc-416a-8c55-d204c7497f7b"

I have created such a user on our ejabberd servers and can login without any problems using DIGEST-MD5 with any version of the MatriX SDK. Can you create an test account on your server for us which fails for you?

Alex
Avatar
GeKa #14
Member since Jun 2011 · 5 posts
Group memberships: Members
Show profile · Link to this post
you can use this one:
username:"3498-8275",
password:"fa3f89c6-2bfc-416a-8c55-d204c7497f7b"
on hellowebapps.com:5222
Avatar
Alex #15
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
what is the xmpp domain of your server?

I tried hellowebapps.com and hwa-iii and get only the following error for both:

  1. <stream:error>
  2. <host-unknown xmlns="urn:ietf:params:xml:ns:xmpp-streams"/>
  3. </stream:error>

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:
Page:  1  2  next
Forum: MatriX RSS