Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
fantawttw #1
Member since Aug 2005 · 8 posts
Group memberships: Members
Show profile · Link to this post
Subject: Trying to talk to Google Talk
Hi,
I am using agsXMMP to try to talk to the new google talk feature.
I have managed to get it to connect to their client on port 5222 however I can't see how to get the agsXMMP to switch into SASL Plain mode.
Could anyone give me an example of some code that connects to a Jabber client and uses SASL Plain mode as the authentication method.
Google give the following info to hook into their service.

You need to know the following:

    * DNS SRV records are not configured for the service at this time
    * Client applications should connect to host talk.google.com on port 5222
    * TLS is required
    * The only supported authentication mechanism is SASL PLAIN

Thanks in advance.

Jon
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hi Jon,

here is the solution. I added a property to XmppClientConnection called ConnectServer. This is the domain or IP if the server you wanna connect to, is different than the server that is used in the stream and your jabber ID.

set Server to gmail.com
set ConnectServer to talk.google.com

when both servers are the same ConnectServer must be null.

you should set Port to 5222 and UseSSL == false. Then the lib uses StartTLS for stream encryption, and SASL Plain for authentication.

you could also set port to 5223 and UseSSL == true. Then the "old style" SSL connection is used.

download the new version 0.41 of the lib and it shoud work.

Alex
Avatar
fantawttw #3
Member since Aug 2005 · 8 posts
Group memberships: Members
Show profile · Link to this post
Subject: Thank you
Hi Alex,
Many thanks. I have got it working, I will post a code sample up once I have made the code a bit cleaner so that it might help someone else.

Regards
Jon
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Subject: Re: Thank you
Hi Jon,
Quote by "fantawttw":
Many thanks. I have got it working, I will post a code sample up once I have made the code a bit cleaner so that it might help someone else.
very cool,
thank you

regards
Alex
Avatar
fantawttw #5
Member since Aug 2005 · 8 posts
Group memberships: Members
Show profile · Link to this post
Subject: Very Simple Code
I have put the code here http://www.jonburrows.co.uk/content/data/jonjab.zip
It is a #develop combine written in vb.net
You will need agsXMPP.dll v0.4.1.0 for the reasons Alex gave above

I hope it helps somebody else. If you find it useful drop me a line and let me know fantawttw (at) gmail (dot) com

It is very simple in that it connects to GTalk and send a message to another GTalk user, useful for a simple paging type thing that I wanted it for within an application.

Hopefully the code should all make sense.

Once again thank you to Alex

Cheers
Jon
Avatar
52xx #6
Member since Sep 2005 · 16 posts
Group memberships: Members
Show profile · Link to this post
hi : fantawttw
 really a good simple client to the newers !
 have you manged to register a new count  ? can you give me a simple ?i really wanna that  !
Avatar
fantawttw #7
Member since Aug 2005 · 8 posts
Group memberships: Members
Show profile · Link to this post
Subject: New Accounts
Hi 52xx,
GMAIL AFAIK does not let you register a new account. If you would like a GMAIL account to try this code on, PM me with your email address and I will send you an invite.

Fantawttw
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: agsXMPP RSS