module RubySMB::Dialect

Definitions that define metadata around a particular SMB dialect. This is useful for grouping dialects into a hierarchy as well as printing them as human readable strings with varying degrees of specificity.

Constants

ALL
Definition

the names are meant to be human readable and may change in the future, use the dialect, order and family attributes for any programmatic comparisons

FAMILY_SMB1

the family of the dialect

FAMILY_SMB2
FAMILY_SMB3
ORDER_SMB1

the order (taxonomic ranking) of the family, 2 and 3 are intentionally combined

ORDER_SMB2
VERSION_SMB1

the major version of the dialect

VERSION_SMB2
VERSION_SMB3

Public Class Methods

[](dialect) click to toggle source

Retrieve a dialect definition. The definition contains metadata describing the particular dialect.

@param [Integer, String] dialect the dialect to retrieve the definition for @return [Definition, nil] the definition if it was found

# File lib/ruby_smb/dialect.rb, line 40
def self.[](dialect)
  dialect = '0x%04x' % dialect if dialect.is_a? Integer
  ALL[dialect]
end