lib/zmachine.rb in zmachine-0.3.2 vs lib/zmachine.rb in zmachine-0.4.0
- old
+ new
@@ -44,12 +44,12 @@
def self.cancel_timer(timer_or_sig)
timer_or_sig.cancel # we do not support signatures
end
- def self.close_connection(connection, reason = nil)
- reactor.close_connection(connection, reason)
+ def self.close_connection(connection, after_writing = false, reason = nil)
+ reactor.close_connection(connection, after_writing, reason)
end
def self.connect(server, port_or_type=nil, handler=nil, *args, &block)
reactor.connect(server, port_or_type, handler, *args, &block)
end
@@ -57,14 +57,14 @@
def self.connection_count
reactor.connections.size
end
def self.heartbeat_interval
- reactor.heartbeat_interval
+ @heartbeat_interval
end
def self.heartbeat_interval=(time)
- reactor.heartbeat_interval = time
+ @heartbeat_interval = time
end
def self.next_tick(callback=nil, &block)
reactor.next_tick(callback, &block)
end