Class: OpenFlow::Protocol::EchoRequest

Inherits:
Message show all
Defined in:
lib/openflow-protocol/messages/echo_reply.rb,
lib/openflow-protocol/messages/echo_request.rb

Direct Known Subclasses

EchoReply

Constant Summary

Constants inherited from Message

Message::HEADER_LENGTH, Message::OFP_VERSION, Message::TYPES

Instance Attribute Summary

Attributes inherited from SuperclassBase

#type_str

Instance Method Summary collapse

Methods inherited from SuperclassBase

#initialize_instance

Instance Method Details

#body_lengthObject



8
9
10
# File 'lib/openflow-protocol/messages/echo_request.rb', line 8

def body_length
  data.length
end

#to_replyObject



8
9
10
# File 'lib/openflow-protocol/messages/echo_reply.rb', line 8

def to_reply
  EchoReply.new(xid: xid, data: data.dup)
end