Class: RubySMB::SMB2::Packet::TreeConnectRequest

Inherits:
GenericPacket
  • Object
show all
Defined in:
lib/ruby_smb/smb2/packet/tree_connect_request.rb

Overview

An SMB2 TreeConnectRequest Packet as defined in 2.2.9 SMB2 TREE_CONNECT Request

Constant Summary collapse

COMMAND =
RubySMB::SMB2::Commands::TREE_CONNECT

Instance Method Summary collapse

Methods inherited from GenericPacket

describe, #display, fields_hashed, format_field, #initialize_instance, #packet_smb_version, read, #status_code, #valid?, walk_fields

Instance Method Details

#encode_path(path) ⇒ Object



17
18
19
# File 'lib/ruby_smb/smb2/packet/tree_connect_request.rb', line 17

def encode_path(path)
  self.path = path.encode('utf-16le')
end