Class: Trema::DescStatsRequest

Inherits:
StatsRequest show all
Defined in:
ruby/trema/stats-request.c

Instance Method Summary collapse

Methods inherited from StatsRequest

#flags, #transaction_id

Constructor Details

#initialize(options = {}) ⇒ DescStatsRequest

A Trema::DescStatsRequest object instance to request descriptive information of OpenFlow switch. Such information includes switch manufacturer, hardware revision and serial number

Returns an object that encapsulates the OFPT_STATS_REQUEST(OFPST_DESC) OpenFlow message.

Examples:

DescStatsRequest.new
DescStatsRequest.new( :transaction_id => 1234 )

Parameters:

  • options (Hash) (defaults to: {})

    the options to create a message with.

Options Hash (options):

  • :transaction_id (Number)

    set the transaction_id as specified or auto-generate it.



321
322
323
324
# File 'ruby/trema/stats-request.c', line 321

static VALUE
desc_stats_request_init( int argc, VALUE *argv, VALUE self ) {
  return parse_common_arguments( argc, argv, self );
}