[ANN] Jabber-RPC

  • Thread starter Massimiliano Mirra - bard
  • Start date
M

Massimiliano Mirra - bard

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("(e-mail address removed)/TestAgent", "bot")
agent.connect


On caller, you have:

session = Jabber::Session.bind("user@jabberserver/Ruby", "user")
remote_agent = Jabber::RPC::Client.new(session, "(e-mail address removed)/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
 
R

Raphael Bauduin

Massimiliano said:
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("(e-mail address removed)/TestAgent", "bot")
agent.connect


On caller, you have:

session = Jabber::Session.bind("user@jabberserver/Ruby", "user")
remote_agent = Jabber::RPC::Client.new(session, "(e-mail address removed)/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

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

Raph
 
A

Aredridel

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top