class Raft4r::RPC::RPCConn

Public Class Methods

new(mach) click to toggle source
Calls superclass method
# File lib/raft4r/rpc_base.rb, line 42
def initialize mach
        super
        @mach = mach
end

Public Instance Methods

post_init() click to toggle source
# File lib/raft4r/rpc_base.rb, line 47
def post_init
        #EM.add_periodic_timer(1) {puts "sec"}
end
receive_data(data) click to toggle source
# File lib/raft4r/rpc_base.rb, line 51
def receive_data data
        r = Marshal.load(data)
        @mach.call_method self, r
end