Class: OpenFlow::Protocol::EchoRequest
- Inherits:
-
Message
show all
- Defined in:
- lib/openflow-protocol/messages/echo_reply.rb,
lib/openflow-protocol/messages/echo_request.rb
Constant Summary
Constants inherited
from Message
Message::HEADER_LENGTH, Message::OFP_VERSION, Message::TYPES
Instance Attribute Summary
#type_str
Instance Method Summary
collapse
#initialize_instance
Instance Method Details
#body_length ⇒ Object
8
9
10
|
# File 'lib/openflow-protocol/messages/echo_request.rb', line 8
def body_length
data.length
end
|
#to_reply ⇒ Object
8
9
10
|
# File 'lib/openflow-protocol/messages/echo_reply.rb', line 8
def to_reply
EchoReply.new(xid: xid, data: data.dup)
end
|