lib/em-ssh/packet-stream.rb
# If the IO object requires a rekey operation (as indicated by either its
# client or server state objects, see State#needs_rekey?), this will
# yield. Otherwise, this does nothing.
# Copyright (c) 2008 Jamis Buck
If the IO object requires a rekey operation (as indicated by either its
client or server state objects, see State#needs_rekey?), this will
yield. Otherwise, this does nothing.
Copyright (c) 2008 Jamis Buck
If the IO object requires a rekey operation ( as indicated by either its client or server state objects see State#needs_rekey? ) this will yield . Otherwise this does nothing . Copyright ( c ) 2008 Jamis Buck
def if_needs_rekey?
        if client.needs_rekey? || server.needs_rekey?
          yield
          client.reset! if client.needs_rekey?
          server.reset! if server.needs_rekey?
        end
      end
def if_needs_rekey? if client . needs_rekey? || server . needs_rekey? yield client . reset! if client . needs_rekey? server . reset! if server . needs_rekey? end end
If the IO object requires a rekey operation (as indicated by either its
client or server state objects, see State#needs_rekey?
If the IO object requires a rekey operation ( as indicated by either its client or server state objects see State#needs_rekey?