module Ethon::Easy::Callbacks
def debug_callback
-
(Proc)
- The callback.
Other tags:
- Example: Return the callback. -
def debug_callback @debug_callback ||= proc {|handle, type, data, size, udata| message = data.read_string(size) @debug_info.add type, message print message unless [:data_in, :data_out].include?(type) 0 } end