views:

188

answers:

1

Hi, I am using ejabberd as a chatting server now. And I am writing a client to chat and register new user. Right now, I know some of the protocol to register a new account, like sending the following command to register new user:

<iq type="set"><query xmlns="jabber:iq:register"><username>wfwfewegwegwewefg</username><password>wfwefwefwefwef</password></query></iq>

My question is: I want to learn more command/protocol to talk to the server. So where can I learn more? For example, How can I ask the server if the user name exists or not. How can I ask the server to unregister a user.

What is the key word I should search for? Should I search for Jabber XMPP protocol or what?

Thanks

+1  A: 

If you are sending queries from an admin account to do these things, look at XEP-0133: Service Administration, which is based on XEP-0050: Ad-hoc commands.

If you mean more from a general user perspective, well you typically can't see if a user account exists (this would leave the door open for spammers to use it for directory harvesting), but you can unregister an account if you own it, see XEP-0077: In-band Registration for more information.

There are many more standard extensions for all kinds of things at http://xmpp.org/extensions/ - some are under development, some are finalized and stable.

MattJ