How to implement XMPP protocol in objective-C?
I want to send & receive messages from Jabber server through XMPP.
Thanks in advance.
XMPP works by creating a persistent TCP (Transmission Control Protocol) connection between a client and server or between one server and another server. Because the connection is persistent, data can be transmitted without reestablishing a connection every time.
The original and "native" transport protocol for XMPP is Transmission Control Protocol (TCP), using open-ended XML streams over long-lived TCP connections. As an alternative to the TCP transport, the XMPP community has also developed an HTTP transport for web clients as well as users behind restricted firewalls.
Multi-User-Chat (MUC) Because MUC rooms are based on XMPP, they can be used to exchange not only plaintext message bodies but a wide variety of XML payloads.
there are 3 type of stanzas used in xmpp. Presence stanza is used to share Presence information between a client and the contacts of the clints (roaster). The stanza type Message is used to share chat messages between two parties.
Make use of the XMPP Framework for Cocoa.
Here's the Getting started using XMPPFramework on iOS.
This is a good tutorial about setting up Jabber client and and will help you to use xmpp.
http://mobile.tutsplus.com/tutorials/iphone/building-a-jabber-client-for-ios-interface-setup/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With