I do agree Norman that instead of building something from scratch I can
work on improving an existing library. But the "so-called" library that
I am working on is going to be very basic and I am writing it purely
for my own understanding. Besides, most of the current libraries have
many dependancies which I am not so comfortable with. <br>
<br>
Somebody please tell me how I can do the TLS/SASL part in order to
connect to GoogleTalk... This is the latest XML trace that I get...<br>
<br>
SENT:<br>
<?xml version='1.0'?><stream:stream to='<a href="http://gmail.com">gmail.com</a>' <br>
xmlns='jabber:client' xmlns:stream='<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>' version='1.0'><br>
<br>
<br>
RECEIVED:<br>
<?xml version="1.0" encoding="UTF-8"?><stream:stream from="<a href="http://gmail.com">gmail.com</a>" <br>
id="E6B9A3D4" version="1.0" <br>
xmlns:stream="<a href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>" <br>
xmlns="jabber:client"><stream:features><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><mechanisms <br>
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-GOOGLE-TOKEN</mechanism></mechanisms></stream:features><br>
<br>
SENT:<br>
<iq type='set' id='MyLib0'><query <br>
xmlns='jabber:iq:auth'><username><a href="mailto:myname@gmail.com">myname@gmail.com</a></username><password>mypasswd</password><resource>Res1</resource></query></iq><br>
<br>
<br>
RECEIVED:<br>
<iq type="error" id="MyLib0"><query <br>
xmlns="jabber:iq:auth"><username><a href="mailto:myname@gmail.com">myname@gmail.com</a></username><password>mypasswd</password><resource>Res1</resource></query><error
<br>
code="405" type="cancel"><not-allowed <br>
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Server <br>
does not support PLAIN</text></error></iq></stream:stream><br>
<br>
Does this mean GoogleTalk ONLY supports X-GOOGLE-TOKEN??? I don't see any advertisement for SASL-PLAIN or MD5 or anything.... <br>
<br>
How did you guys fix this problem? Can somebody tell me what things
should be done after I first receive the reply from google server???<br>
<br>
Thanks and awaiting your reply,<br>
<br>
- Mukil<br>