Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Connected once !
Avatar
azorman #1
Member since Mar 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
Subject: Mini Client Strange Behavior
First of all let say what a great job you done've with this library! Many, many thanks.

Now to the issue at hand... I used Borland Developer Studio to compile the MiniClient in the samples directory; after adding the references to the 3 .dlls it compiled perfectly. I logged into GTalk with Google's client with one account and using a different account logged in perfectly with the MiniClient; it worked perfectly... I was talking to myself and enjoying it; the Debug and Socket Debug windows were filled the information and everything was working fine. So I disconnected and tried to connect again, but I wasn't able to connect. Not only does it not connect as the debug windows show absolutely nothing; before posting this I tried everything I know in trying to solve this problem, including recompiling, shutting down firewalls, moving the exe+dlls to a different computer on a different internet connection... don't know what else to try... if at least the debug windows 'debugged'...

Any help will be greatly appreciated!


azorman
(in the Azores)
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello azorman,

Which Framework version are you using? 1.1 or 2.0?
Other people posted some strange behaviour here and on other list with GTalk too. What i could figure out was, that the connection servers they submit with the SRV DNS query often don't work. Other people reported that it sometimes takes over a minute to connect the socket.
I can't cause this problem. My Gmail account works most of the time without problems when i set

  1. xmppCon.AutoResolveConnectServer = true,

and it works always if i use

  1. xmppCon.AutoResolveConnectServer = false;
  2. xmppCon.ConnectServer = "talk.google.com";

If you use .Net 1.1 could you please try to use the MiniClient for the 2.0 version to see if it has the same problems?

Alex
Avatar
azorman #3
Member since Mar 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
I do have 2.0; I will keep trying to figure this out. In te mean time, I downloaded and installed MS Visual Studio Express for C# and VB in an attempt to see if Borland's Dev Studio had anything to do with it (although it shouldn't). Now, when I try to build the 2005 version of the MiniClient I am getting the following error:

Error    1    Cannot implicitly convert type 'agsXMPP.Xml.Dom.ElementList' to 'agsXMPP.Xml.Dom.NodeList'    C:\Documents and Settings\JDM\Desktop\XMPP\samples\VS2005\MiniClient\frmMain.cs    144    32    MiniClient

on this line:

            NodeList servers = doc.RootElement.SelectElements("Server");

Any ideias? Thanks!
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
We added the new ElementList class with the latest release. So if you compile the MiniClient with the latest libary, and not the binary version which ships with the MiniClient you have to update the code a bit. Just replace NodeList with ElementList and it should work fine.

Alex
This post was edited on 2006-03-04, 16:53 by Alex.
Avatar
azorman #5
Member since Mar 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
Yes, it compiles if I replace the NodeList with the ElementList and it also compiles if I use the binaries in the MiniClient. And it runs great !

Thank you Alex!
Avatar
Alex #6
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
so your Google Talk problems are gone?

Alex
Avatar
azorman #7
Member since Mar 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
Yes Ales, they're gone... don't really know why... something I did and could not replicate. A couple of questions: does the library support the CALL feature? and if so... could I play a sound file once it connects? Also, other than Google Talk to other server can I connect to? (MSN, Yahoo, etc., etc.)

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

the library has no voice support. Google is using XMPP only for initiating the voice session. They are using the XMPP extension Jingle for that. See also this thread http://forum.ag-software.de/forum.php?req=thread&id=165. We are working on Jingle. But we are not working on a complete voice engine, because this is not XMPP related.

Yes you can connect to other services like MSN, Yahoo, AIM, ICQ etc... This is done with Gateways/Components in Jabber/XMPP. GTalk doesnt run them on their server. So you have to install your own XMPP server with Gateways, or choose one of the public servers which run these Gateways.

Here is small list of some public servers
http://www.xmpp.net/

Alex
Avatar
azorman #9
Member since Mar 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
Thank you, thank you very much !
Avatar
azorman #10
Member since Mar 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
As a final note... I wrote a 'proof of concept' [very rudimentary] program to discover the IM clients to whom I could talk to; I was glad to see that I could successfully talk to: gtalk, gaim, msn, icq and yahoo! Now it's time to learn C# so I can write something useful. Again, great job on the library !
Avatar
krishnaraj #11
Member since Jan 2009 · 2 posts · Location: chennai/India
Group memberships: Members
Show profile · Link to this post
Hi,
Sorry to dig up an old thread. I am currently writing a web based messenger and I have been able to connect to GTalk but have no clue on how to connect to other IM services like Yahoo and MSN. Can you please share the details of how you were able to connect to the other services?

Thanks,
Krishnaraj
Avatar
Alex #12
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
use the forums search and you will fin many topics about this.
The keywords are transports and gateways.
Avatar
krishnaraj #13
Member since Jan 2009 · 2 posts · Location: chennai/India
Group memberships: Members
Show profile · Link to this post
Hi,
Thanks a lot!
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