Class: Rex::Proto::MsTds::MsTdsStatus

Inherits:
BinData::Uint8
  • Object
show all
Defined in:
lib/rex/proto/ms_tds/ms_tds_status.rb

Constant Summary collapse

NORMAL =
0
END_OF_MESSAGE =
1
IGNORE_EVENT =
2
RESETCONNECTION =

TDS 7.1+

8
RESECCONNECTIONTRAN =

TDS 7.3+

16

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.name(value) ⇒ Object



9
10
11
# File 'lib/rex/proto/ms_tds/ms_tds_status.rb', line 9

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

Instance Method Details

#to_symObject



13
14
15
# File 'lib/rex/proto/ms_tds/ms_tds_status.rb', line 13

def to_sym
  self.class.name(value)
end