<br>ello every one <span class="gmail_quote"><br></span><br>
i am developing a IM (in C/C++) using the google talk server .. i read the RFC of XMPP
<div><span>- Hide quoted text -</span></div>
<span><br>
and understood it very well.. i am trying to develop this client from scratch my<br>
application is independent of any lib ... as a first step i am trying to connect to <br>
the google server .... as our network is behind the FW so i have written a code <br>
which uses the SOCKS_PROXY to connect to the google server.. i have <br>
understood the steps for procceding the login . Which i am going to illustarte you<br>
<br>
==========================================================<br>
<br>
C: <?xml version='1.0'?><br>
<br>
C: <stream:stream to='<a href="http://gmail.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gmail.com</a>' xmlns='jabber:client' xmlns:stream='<a href="http://etherx.jabber.org/streams" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://etherx.jabber.org/streams</a>' version='1.0'><br>
<br>
S:
<?xml version="1.0" encoding="UTF-8"?><stream
<div><span>:stream
from="<a href="http://gmail.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">gmail.com</a>" id="949A13CEE836125B" version="1.0"
xmlns:stream="<a href="http://etherx.jabber.org/streams" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://etherx.jabber.org/streams</a>"
xmlns="jabber:client"><br>
<br></span>
S:
<stream:features><starttls
xmlns="urn:ietf:params:xml:ns
<div><span>:xmpp-tls"/><mechanisms
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-GOOGLE-TOKEN</mechanism></mechanisms></stream:features><br>
<br></span>
/*Start TLS */<br>
<br>
C:
<starttls xmlns='urn:ietf:params:xml:ns
<div>:xmpp-tls'/><br>
<br>
S:
<proceed xmlns="urn:ietf:params:xml:ns
<div>:xmpp-tls"/><br>
/* Now after 'starttls',how to begin TSL negotiation b/w the Client and server by sending Client Hello Command.*/<br>
/*Here ,Client sends Hello and Server also sends Hello to Client ,i
want to know how to code for that using Lib or doing it from Scratch
:P*/<br>
<br>
/*after TSL neg ... start new XML stream */<br>
.....<br>
.....<br>
..<br>
<br>
<br>
I wanna know how to begin TCP negotiation by sending client hello command .... ?<br>
any examples (C code) ? <br>
<br>
Thanks<br>
ami</div></div></div></div></span><br><br>