lib/zmachine/connection.rb in zmachine-0.1.1 vs lib/zmachine/connection.rb in zmachine-0.1.3

- old
+ new

@@ -28,25 +28,38 @@ end def receive_data(data) end + def send3(a,b,c) + @channel.send3 a,b,c + end + def send2(a,b) + @channel.send2 a,b + end + def unbind end + def reconnect(server, port) + ZMachine.reconnect server, port, self + end + # public API def_delegator :@channel, :close_connection def close_connection_after_writing close_connection(true) end def comm_inactivity_timeout + channel.comm_inactivity_timeout end def comm_inactivity_timeout=(value) + channel.comm_inactivity_timeout = value end alias :set_comm_inactivity_timeout :comm_inactivity_timeout= def detach @@ -178,9 +191,9 @@ end private def _not_implemented - raise RuntimeError.new("API call not implemented!") + raise RuntimeError.new("API call not implemented! #{caller[0]}") end end end