Module: RubySMB::SMB1::Commands

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

Constant Summary collapse

SMB_COM_CLOSE =
0x04
SMB_COM_TRANSACTION =
0x25
SMB_COM_ECHO =
0x2B
SMB_COM_READ_ANDX =
0x2E
SMB_COM_WRITE_ANDX =
0x2F
SMB_COM_TRANSACTION2 =
0x32
SMB_COM_TRANSACTION2_SECONDARY =
0x33
SMB_COM_TREE_DISCONNECT =
0x71
SMB_COM_NEGOTIATE =
0x72
SMB_COM_SESSION_SETUP_ANDX =
0x73
SMB_COM_LOGOFF =
0x74
SMB_COM_LOGOFF_ANDX =
0x74
SMB_COM_TREE_CONNECT =
0x75
SMB_COM_NT_TRANSACT =
0xA0
SMB_COM_NT_TRANSACT_SECONDARY =
0xA1
SMB_COM_NT_CREATE_ANDX =
0xA2
SMB_COM_NO_ANDX_COMMAND =
0xFF

Class Method Summary collapse

Class Method Details

.name(value) ⇒ Object



22
23
24
# File 'lib/ruby_smb/smb1/commands.rb', line 22

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