Module: EMRPC::DebugPidCallbacks

Included in:
Pid
Defined in:
lib/emrpc/evented_api/debug_pid_callbacks.rb

Instance Method Summary collapse

Instance Method Details

#_debug(m) ⇒ Object



4
5
6
# File 'lib/emrpc/evented_api/debug_pid_callbacks.rb', line 4

def _debug(m)
  puts "# Pid #{@uuid}: #{m}"
end

#connected(pid) ⇒ Object



8
9
10
11
# File 'lib/emrpc/evented_api/debug_pid_callbacks.rb', line 8

def connected(pid)
  _debug "connected #{pid.inspect}"
  super
end

#connection_failed(conn) ⇒ Object



18
19
20
21
# File 'lib/emrpc/evented_api/debug_pid_callbacks.rb', line 18

def connection_failed(conn)
  _debug "connection_failed #{conn.inspect}"
  super
end

#disconnected(pid) ⇒ Object



13
14
15
16
# File 'lib/emrpc/evented_api/debug_pid_callbacks.rb', line 13

def disconnected(pid)
  _debug "disconnected #{pid.inspect}"
  super
end

#handshake_failed(conn, msg) ⇒ Object



23
24
25
26
# File 'lib/emrpc/evented_api/debug_pid_callbacks.rb', line 23

def handshake_failed(conn, msg)
  _debug "handshake_failed #{conn.inspect} with #{msg.inspect}"
  super
end

#on_raise(exception) ⇒ Object



33
34
35
36
# File 'lib/emrpc/evented_api/debug_pid_callbacks.rb', line 33

def on_raise(exception)
  _debug "on_raise(#{exception.inspect})"
  super
end

#on_return(value) ⇒ Object



28
29
30
31
# File 'lib/emrpc/evented_api/debug_pid_callbacks.rb', line 28

def on_return(value)
  _debug "on_return(#{value.inspect})"
  super
end