Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement XMPP protocol in objective-C? [closed]

Tags:

iphone

chat

xmpp

How to implement XMPP protocol in objective-C?

I want to send & receive messages from Jabber server through XMPP.

Thanks in advance.

like image 947
Dilip Avatar asked Jun 15 '11 13:06

Dilip


People also ask

How XMPP works step by step?

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.

What protocol does XMPP use?

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.

Which method is used for exchange of message in XMPP protocol?

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.

How many types of XMPP are there?

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.


2 Answers

Make use of the XMPP Framework for Cocoa.

Here's the Getting started using XMPPFramework on iOS.

like image 150
Nick Weaver Avatar answered Oct 25 '22 18:10

Nick Weaver


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/

like image 37
vikas ojha Avatar answered Oct 25 '22 18:10

vikas ojha