[JDEV] registering component with jabber server
sheath at jabber.org
Sun Apr 15 15:38:42 CDT 2001
Your stream header should look like:
<?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' id='some-value' xmlns='jabber:component:accept' to='winauth'>
base_accepts's reply header will look like:
<?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' id='1234' xmlns='jabber:component:accept' from='winauth'>
Of course, these examples assume the id on the base_accept service is winauth.
On Sun, Apr 15, 2001 at 09:54:19PM +0200, frank wrote:
> What should stream header look like? This is the problem I can't resolve...
> Could you post an example?
> > After you write your stream header to the socket, base_accept should write
> > back. On the stream header which base_accept wrote back there is a id=""
> > attribute. Make a SHA1 hash of the id + password and send it back in a
> > tag: <handshake>sha-hash</handshake>
> > base_accept will send an empty <handshake/> tag in acknowledgement,
> > or close the stream if the password was wrong.
> jdev mailing list
> jdev at jabber.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 232 bytes
Desc: not available
More information about the JDev