Book Image

Practical XMPP

By : Lloyd Watkin, Steven Watkin, Koelle
Book Image

Practical XMPP

By: Lloyd Watkin, Steven Watkin, Koelle

Overview of this book

XMPP (eXtensible Messaging and Presence Protocol) is a messaging protocol that enables communication between two or more devices via the Internet. With this book, developers will learn about the fundamentals of XMPP, be able to work with the core functionality both server-side and in the browser, as well as starting to explore several of the protocol extensions. You will not only have a solid grasp of XMPP and how it works, but will also be able to use the protocol to build real-world applications that utilize the power of XMPP. By the end of this book, you will know more about networking applications in general, and have a good understanding of how to extend XMPP, as well as using it in sample applications.
Table of Contents (11 chapters)
Free Chapter
1
1. An Introduction to XMPP and Installing Our First Server

Introducing the Jabber ID


In order to identify a user on the XMPP network, you need to know two things: the server on which they have an account and the account name on that server. So far, looks very much like an e-mail address, for example, [email protected].

However, XMPP being somewhat visionary for its time-realized that people would probably be using multiple devices/clients connected to the same account, and therefore added the resource that identifies a specific client connection on that account. When we include the resource, we get what is known as a full Jabber ID, or full JID. An example is [email protected]/highschool.

The JID is made up of three parts:

Local

Domain

Resource

marty

@

mcfly.fam

/

highschool

Like e-mail, the domain part of the JID is case insensitive, but, unlike e-mail, the local part is also case-insensitive. XMPP goes one big step beyond this, however, and uses full Unicode for addressing so that JID can be made up of any number of non-ASCII characters...