powered by Jive Software

Set a simple client-2-client chat

Hi
Im tring to develop a simple client-2-client chat, without rooms.

Something simple like this one: http://www.codeproject.com/Articles/21267/Creating-a-Jabber-Client-using-the-ags XMPP-Library
How should I set my OpenFIre server for this?

thanks
Gal

You just install and run it. I don’t think there is anything special about your use case.

http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/install- guide.html

wroot wrote:

http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/install- guide.html

Are you sure this is the link? I can’t find anything that relevant to my case…

This link was an addition to Robin’s answer. You ask how should you set Openfire and i gave the installation documentation link. Probably we didn’t understand your question, so maybe you should elaborate more on this. A wild guess, are you asking how to remove rooms (MUC) functionality from Openfire? Btw, xmpp/jabber is using client-server-client scheme for transferring messages, so if you want client-client chat program you will have to modify this too. This is probably possible, but can take some time and maybe it is better to search for some other platform for this. But maybe it will be enough just to create a client without MUC functionality and use it with standard Openfire (or you can disable room creation in server’s options also).

Yes, I want to remove rooms (MUC) functionality from Openfire.

How can I create a client without MUC functionality?
I noticed that http://www.coderollers.com/xmpp-server/ using that type of client-client chat
and this is exactly what I want to do.

Gal

I still think it is easier to just disable room creation in Openfire settings. But do as you wish, though i doubt you will get a suggestion how to remove MUC out of Openfire here. Not many developers here and especially for such questions. I’m not a developer myself.

If you are going to use Smack library for your client, then you can ask in the Smack Dev section about creating a client without MUC (again, no guarantees to get many suggestions soon). If you are going to use some other library, then i think you should ask on that library’s site/forums. Btw, i didn’t find anything about client-client chat at the site you gave the link to. Actually creating a client with such scheme would go against the jabber/xmpp nature being a server centric platform (except for file transfers).

And if I will disable room creation in Openfire settings, I will be able to send messages from client to client (through the server)? My main reason for this is that I want to send a private messages between the clients…

Sorry for the misunderstanding. I’m a little confused.
Gal

If you disable room creation you will still be able to send private messages from a client to a client (and all messages in jabber go through a server). MUC is not affecting simple private messaging as private messaging is not using rooms.