[JDEV] I have interested in making a jabber client.
Peter Saint-Andre
stpeter at jabber.org
Mon Mar 26 11:32:53 CST 2001
The MIO API is for server components. You don't need to use that if
you're just writing a Jabber client. All that a Jabber client needs to
do is make a TCP connection on port 5222 of the Jabber server and send
valid XML. For example, first you need to initiate the stream header:
<stream:stream to='yourjabberserver' xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams'>
Then you can authenticate with the server:
<iq id='A1' type='set'>
<query xmlns='jabber:iq:auth'>
<username>yourusername</username>
<resource>someresource</resource>
<password>yourpassword</password>
</query>
</iq>
Then you can send presence:
<presence/>
And so on -- see the Jabber Protocol Overview for detailed information
about all the XML you can send and receive to perform various functions.
The URL is: http://docs.jabber.org/general/html/protocol.html
Peter
--
Peter Saint-Andre
stpeter at jabber.org
Yoong-Young Kim wrote:
>
> I have interested in making a jabber client in Linux.
>
> Can I make jabber client easily with Jabberd API&C?
>
> in Jabberd API Document,
> It said, mio_init() funsion is used internally by Jabberd upon startup, and should not be called, unless a call to
> mio_stop() has been made,......
>
> I think if I use Jabberd API, I must use MIO_XXX(); aren't you?
>
> I am seeking advice.
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
More information about the JDev
mailing list