How to send and receive messages using XMPPFramework


I am creating a chat application using XMPP Framework in iPhone. I wish to know the process for sending and receiving messages. Can anyone give me a solution for this?

Thanks in advance.

Quick google search reveals many XMPP libraries, either C/C++ or ObjC. Perhaps would be a good starting point, though I haven't tried it personally.