class Net::SSH::Authentication::Agent

def send_packet(type, *args)

Send a new packet of the given type, with the associated data.
def send_packet(type, *args)
  buffer = Buffer.from(*args)
  data = [buffer.length + 1, type.to_i, buffer.to_s].pack("NCA*")
  debug { "sending agent request #{type} len #{buffer.length}" }
  @socket.send data, 0
end