Class: HrrRbSftp::Protocol::Version1::Packets::SSH_FXP_NAME

Inherits:
Packet show all
Defined in:
lib/hrr_rb_sftp/protocol/version1/packets/104_ssh_fxp_name.rb

Overview

This class implements SFTP protocol version 1 SSH_FXP_NAME packet type, format, and responder.

Constant Summary collapse

TYPE =

Represents SSH_FXP_NAME packet type.

104
FORMAT =

Represents SSH_FXP_NAME packet format.

[
  [DataTypes::Byte,   :"type"      ],
  [DataTypes::Uint32, :"request-id"],
  [DataTypes::Uint32, :"count"     ],
]
PER_COUNT_FORMAT =

Represents SSH_FXP_NAME packet additional format for :“count” => N.

Hash.new{ |hash, key|
  Array.new(key){ |i|
    [
      [DataTypes::String, :"filename[#{i}]"],
      [DataTypes::String, :"longname[#{i}]"],
      [DataTypes::Attrs,  :"attrs[#{i}]"   ],
    ]
  }.inject(:+)
}
CONDITIONAL_FORMAT =

Represents SSH_FXP_NAME packet conditional format.

{
  :"count" => PER_COUNT_FORMAT,
}

Instance Attribute Summary

Attributes included from Loggable

#logger

Method Summary

Methods inherited from Packet

#context, #handles, #initialize, #version

Methods inherited from Common::Packets::Packet

#decode, #encode, #initialize

Methods included from Loggable

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

Constructor Details

This class inherits a constructor from HrrRbSftp::Protocol::Version1::Packets::Packet