dear all ...
atracted by elliot's post, I think it's about "uncommon" XMPP client 
.... I want to tell you what i've done sometimes ago with a bunch of 
support and enlightment of Steven Maka.

Problem/Situation : I need a many-to-many communication between aplications.
Chance : Use Jabber server as "reflector"
Planned Scenario : every application make a login to  a jabber chat room 
as XMPP client. Post what it want other to do to the room , and act as 
what other's post.

Why XMPP4R : Simply because it's realy hard to find Perl/Pyton Document 
for real dumb stupid lazy coder like me.

Experiment (Note : This is my dirty jum to Jabber, Ruby and XMPP4R) :
1. Install/setup a jabber server
2. Write a simple jabber client using XMPP4R. Functions included :
- Alway keep the connection up
- write the "message part" to std out of whatever it received from other 
(prepared to call another script based on received msg)
- waiting msg from other local application via unix socket
- send to other Jaber client what ever it received in unix socket
3. Learn about ttyctrl (http://ttyctrl.sourceforge.net/) ... this beast 
can call what ever script based on simple serial-com push-button
4. write another ruby script to be called by ttyctrl, function :
- send msg to script#2, based on ttyctrl call.

Test :
- I login to my jabber using pidgin
- the experiment mechine also login to the same jabber server. both 
script#2 and ttyctrl run in background.
- whenenevr a button pushed at the experiment engine .... my pidgin 
shows the msg it send.

Credit :
- Steven Maka for his great XMPP4R , and tons of enlightment

Sorry .. the codes has gone ... my HD formated for my cctv project :(

Breaking news : There is a chance that I need to re-code and re-learn it 
from zero, some body want me to send  CAN data  from trucks to  Fleet 
Management System.

Regards
-bino-

_______________________________________________
Xmpp4r-devel mailing list
Xmpp4r-devel@gna.org
https://mail.gna.org/listinfo/xmpp4r-devel

Reply via email to