Sha256: 2f1a4b3916b68f0eeaed2830263398de5bd77a7fb50d03b54fe15b3d92e1ab5b
Contents?: true
Size: 1.58 KB
Versions: 2
Compression:
Stored size: 1.58 KB
Contents
require 'pio/echo/format' require 'pio/echo/message' require 'pio/open_flow' module Pio class Echo # OpenFlow 1.0 Echo Request message. class Request < Message # OpenFlow 1.0 Echo request message generator. class Format < Pio::Echo::Format default_parameters message_type_value: Pio::OpenFlow::Type::ECHO_REQUEST end # Creates an EchoRequest OpenFlow message. This message can be # used to measure the bandwidth of a controller/switch # connection as well as to verify its liveness. # # @overload initialize() # @example # Pio::Echo::Request.new # # @overload initialize(transaction_id) # @example # Pio::Echo::Request.new(123) # @param [Number] transaction_id # An unsigned 32-bit integer number associated with this # message. # # @overload initialize(user_options) # @example # Pio::Echo::Request.new( # transaction_id: transaction_id, # user_data: 'Thu Aug 25 13:09:00 +0900 2011' # ) # @param [Hash] user_options The options to create a message with. # @option user_options [Number] :transaction_id # @option user_options [Number] :xid An alias to transaction_id. # @option user_options [String] :user_data # The user data field specified as a String may be a message # timestamp to check latency, various lengths to measure # bandwidth or zero-size(nil) to verify liveness between the # switch and controller. end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pio-0.9.0 | lib/pio/echo/request.rb |
pio-0.8.2 | lib/pio/echo/request.rb |