Class: HrrRbSftp::Protocol::Version1::Packet::SSH_FXP_NAME

Inherits:
Object
  • Object
show all
Includes:
Common::Packetable
Defined in:
lib/hrr_rb_sftp/protocol/version1/packet/104_ssh_fxp_name.rb

Constant Summary collapse

TYPE =
104
FORMAT =
[
  [DataType::Byte,   :"type"      ],
  [DataType::Uint32, :"request-id"],
  [DataType::Uint32, :"count"     ],
]
PER_COUNT_FORMAT =
Hash.new{ |hash, key|
  Array.new(key){ |i|
    [
      [DataType::String, :"filename[#{i}]"],
      [DataType::String, :"longname[#{i}]"],
      [DataType::Attrs,  :"attrs[#{i}]"   ],
    ]
  }.inject(:+)
}
CONDITIONAL_FORMAT =
{
  :"count" => PER_COUNT_FORMAT,
}

Instance Attribute Summary

Attributes included from Loggable

#logger

Method Summary

Methods included from Common::Packetable

#decode, #encode, #initialize

Methods included from Loggable

#log_debug, #log_error, #log_fatal, #log_info, #log_warn