Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[ANN] Jabber-RPC

0 views
Skip to first unread message

Massimiliano Mirra - bard

unread,
Dec 8, 2004, 9:04:38 AM12/8/04
to

Ever thought it would be nice to call objects located anywhere in the
world, without bothering with static IPs, DNS, Apache, CGI, NAT, PAT,
gateways, authentication, and so on?

Jabber-RPC lets you do this. On the callee side you have:

require "jabber/rpc"

class TestAgent < Jabber::RPC::BasicAgent
def exposed_commands
["alive?"]
end

def alive?
true
end
end

agent = TestAgent.new("b...@jabberserver.com/TestAgent", "bot")
agent.connect


On caller, you have:

session = Jabber::Session.bind("user@jabberserver/Ruby", "user")
remote_agent = Jabber::RPC::Client.new(session, "b...@jabberserver.com/TestAgent").proxy3
remote_agent.alive? #=> true


And with a bit more code, remote users can talk to the object through
an IM client, too.

Find it at: http://jabber-rpc.rubyforge.org


Massimiliano

Raphael Bauduin

unread,
Dec 8, 2004, 10:20:12 AM12/8/04
to Massimiliano Mirra - bard

Cool! Testing this has just been added to my todo list ;-)

Raph

Aredridel

unread,
Dec 8, 2004, 5:03:29 PM12/8/04
to
On Wed, 8 Dec 2004 23:07:36 +0900, Massimiliano Mirra - bard
<mmi...@libero.removethis.it> wrote:
>
> Ever thought it would be nice to call objects located anywhere in the
> world, without bothering with static IPs, DNS, Apache, CGI, NAT, PAT,
> gateways, authentication, and so on?
>
> Jabber-RPC lets you do this. On the callee side you have:

A proper install procedure:
mkdir lib/jabber -p
mv rpc.rb lib/jabber/rpc.rb
cp /path/to/setup.rb .

Then build as you would any setup.rbified package.


0 new messages