Class: OFStatistics
Constant Summary
collapse
- STATISTICS_TYPES =
[
:description,
:flow,
:aggregate,
:table,
:port,
:queue
]
Constants inherited
from OFMessage
OFMessage::HEADER_LENGTH, OFMessage::OFP_VERSION, OFMessage::TYPES
Instance Attribute Summary
#type_str
Instance Method Summary
collapse
#initialize_instance
Instance Method Details
#body_length ⇒ Object
21
22
23
|
# File 'lib/messages/statistics.rb', line 21
def body_length
4 + statistics.to_binary_s.length
end
|
#flags_list ⇒ Object
14
15
16
|
# File 'lib/messages/statistics.rb', line 14
def flags_list
self.class.const_get(:FLAGS)
end
|