What is jabber ?
XMPP stands for eXtensible Messaging and Presence Protocol.
Such a protocol is open-standard and oriented to message exchange. The original
name of the protocol was Jabber.
--
how message would
send ?
The XMPP protocol is based on XML (Extensible Markup Language)
so each type of message (e.g. login, message send, etc.) is encoded in this
format. For example, let’s suppose President Obama sends a message to Hillary.
The format of the message would be something like this:
1
2
3
|
<message type="chat" from="obama@server.com" to="hillary@server.com">
<body>Hi
there</body>
</message>
|
how does it work?
XMPP is a decentralized service, much
like email. This means that the Hillary and Obama accounts might be on
different servers (i.e. obama@server.com and hillary@otherserver.com). The
message is delivered anyway because XMPP enables server-to-server
communication.
Example: In case Hillary is
offline, the message is cached on the server and delivered when she goes
online. To keep things simple and focus on the client side, in this tutorial we
will consider a scenario with just one server.
List of jabber server
:
Jeabbered (easy
install and configure ):
Mac Version Ejabbered
Download link:
After installation is
completed. We needed to to following steps:
The most important commands are ‘start’ and ‘stop’. In
case they are not executable you can make them so by issuing the following
shell command:
chmod 755 stop
chmod 755 start
chmod 755 start
The folder contains also a ‘postinstall.sh’ script, which
has to be run right after the installation to create the admin user. The script
expects three parameters: user, domain and password. So we can run it like
this:
./postinstall.sh cesare jerry.local password
We have chosen jerry.local, the name of the local machine,
as domain but ‘localhost’ would work as well. This starts the server and adds
this user as administrator. To double check if the configuration is correct we
can open the ‘ejabberd.cfg’ file in the ‘con’ folder. In the Access Control
List section it should contain the following
statement
statement
1
|
{acl, admin,
{user, "cesare", "jerry.local"}}. |
Now you should be able to start the jabber server by
typing
./start
This will open by default a web page which notifies you
that the server has been started.
No comments:
Post a Comment