Sha256: 5599bc0d882fc00358901f50e0e7ef66b02a92cbc777ce01110d3531ebc7798e

Contents?: true

Size: 657 Bytes

Versions: 16

Compression:

Stored size: 657 Bytes

Contents

require 'rubygems'
require 'buby'
require 'drb'

module DrbBuby
  attr_reader :drb_server

  def evt_register_callbacks(cb)
    super(cb)
#    cb.issueAlert("[DrbBuby] Service on: #{@drb_server.uri}")
  end

  def init_DrbBuby
    ## want to bind the DRb service on a specific socket?
    uri ='druby://127.0.0.1:9999'
    ## or let it choose one automatically:
    #  uri = nil 
    @drb_server = DRb.start_service uri, self
    puts "[DrbBuby] Service on: #{@drb_server.uri}"
    self.alert("[DrbBuby] Service on: #{@drb_server.uri}")
  end
end

if __FILE__ == $0
  $burp = Buby.new
  $burp.extend(DrbBuby)
  $burp.start_burp()
  $burp.init_DrbBuby
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
emonti-buby-1.1.4.1 samples/drb_buby.rb
emonti-buby-1.1.4 samples/drb_buby.rb
buby-1.6.0-java samples/drb_buby.rb
buby-1.5.2-java samples/drb_buby.rb
buby-1.5.1-java samples/drb_buby.rb
buby-1.5.0-java samples/drb_buby.rb
buby-1.5.0.pre4-java samples/drb_buby.rb
buby-1.5.0.pre3-java samples/drb_buby.rb
buby-1.5.0.pre2-java samples/drb_buby.rb
buby-1.5.0.pre1-java samples/drb_buby.rb
buby-1.3.3-java samples/drb_buby.rb
buby-1.3.1-java samples/drb_buby.rb
buby-1.3.0-java samples/drb_buby.rb
buby-1.2.0-java samples/drb_buby.rb
buby-1.1.7-java samples/drb_buby.rb
buby-1.1.6-java samples/drb_buby.rb