Module: RubySMB::SMB2::Commands

Defined in:
lib/ruby_smb/smb2/commands.rb

Overview

Constant Summary collapse

NEGOTIATE =
0x00
SESSION_SETUP =
0x01
LOGOFF =
0x02
TREE_CONNECT =
0x03
TREE_DISCONNECT =
0x04
CREATE =
0x05
CLOSE =
0x06
FLUSH =
0x07
READ =
0x08
WRITE =
0x09
LOCK =
0x0a
IOCTL =
0x0b
CANCEL =
0x0c
QUERY_DIRECTORY =
0x0e
ECHO =
0x0d
CHANGE_NOTIFY =
0x0f
QUERY_INFO =
0x10
SET_INFO =
0x11

Class Method Summary collapse

Class Method Details

.name(value) ⇒ Object



24
25
26
# File 'lib/ruby_smb/smb2/commands.rb', line 24

def self.name(value)
  constants.select { |c| c.upcase == c }.find { |c| const_get(c) == value }
end