class RubySMB::SMB1::Packet::ReadAndxRequest

A SMB1 SMB_COM_READ_ANDX Request Packet as defined in [2.2.4.42.1 Request](msdn.microsoft.com/en-us/library/ee441839.aspx) [2.2.4.2.1 Client Request Extensions](msdn.microsoft.com/en-us/library/ff470250.aspx)

Constants

COMMAND

Public Instance Methods

set_64_bit_offset(is_64_bit) click to toggle source

Specifies whether the offset is a 32-bit (default) or 64-bit value. When `is_64_bit` is true, a 64-bit offset will be used and the OffsetHigh field will be added to the structure.

@param is_64_bit [TrueClass, FalseClass] use a 64-bit offset if set to true, 32-bit otherwise

# File lib/ruby_smb/smb1/packet/read_andx_request.rb, line 74
def set_64_bit_offset(is_64_bit)
  raise ArgumentError.new, 'The value can only be true or false' unless [true, false].include?(is_64_bit)
  parameter_block.word_count = is_64_bit ? 0x0C : 0x0A
end
set_read_from_named_pipe(read_from_named_pipe) click to toggle source

Sets the read_from_named_pipe flag to `read_from_named_pipe` value (true or false). When reading from a named pipe, this flag needs to be set to true, which forces the use of Timeout field in Timeout_or_MaxCountHigh. When set to false (default), for regular files, MaxCountHigh field will be used instead.

@param read_from_named_pipe [TrueClass, FalseClass] the value the read_from_named_pipe flag is to be set to.

# File lib/ruby_smb/smb1/packet/read_andx_request.rb, line 65
def set_read_from_named_pipe(read_from_named_pipe)
  raise ArgumentError.new, 'The value can only be true or false' unless [true, false].include?(read_from_named_pipe)
  parameter_block.read_from_named_pipe = read_from_named_pipe
end