Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/rex/proto/ms_tds/ms_tds_status.rb
27907 views
1
module Rex::Proto::MsTds
2
class MsTdsStatus < BinData::Uint8
3
NORMAL = 0
4
END_OF_MESSAGE = 1
5
IGNORE_EVENT = 2
6
RESETCONNECTION = 8 # TDS 7.1+
7
RESECCONNECTIONTRAN = 16 # TDS 7.3+
8
9
def self.name(value)
10
constants.select { |c| c.upcase == c }.find { |c| const_get(c) == value }
11
end
12
13
def to_sym
14
self.class.name(value)
15
end
16
end
17
end
18
19