Class: Trema::QueueGetConfigReply
- Inherits:
-
Object
- Object
- Trema::QueueGetConfigReply
- Defined in:
- ruby/trema/queue-get-config-reply.c
Instance Method Summary collapse
-
#datapath_id ⇒ Number
Message originator identifier.
-
#initialize(options = {}) ⇒ QueueGetConfigReply
constructor
A reply instance of QueueGetConfigReply constructed when
OFPT_QUEUE_GET_CONFIG_REPLYmessage received. -
#port ⇒ Number
The port the queue is attached to.
-
#queues ⇒ Array<PacketQueue>
An array of PacketQueue objects.
-
#transaction_id ⇒ Number
Transaction ids, message sequence numbers matching requests to replies.
Constructor Details
#initialize(options = {}) ⇒ QueueGetConfigReply
A reply instance of Trema::QueueGetConfigReply constructed when OFPT_QUEUE_GET_CONFIG_REPLY message received.
59 60 61 62 63 |
# File 'ruby/trema/queue-get-config-reply.c', line 59
static VALUE
queue_get_config_reply_init( VALUE self, VALUE options ) {
rb_iv_set( self, "@attribute", options );
return self;
}
|
Instance Method Details
#datapath_id ⇒ Number
Message originator identifier.
71 72 73 74 |
# File 'ruby/trema/queue-get-config-reply.c', line 71 static VALUE queue_get_config_reply_datapath_id( VALUE self ) { return rb_hash_aref( rb_iv_get( self, "@attribute" ), ID2SYM( rb_intern( "datapath_id" ) ) ); } |
#port ⇒ Number
The port the queue is attached to.
93 94 95 96 |
# File 'ruby/trema/queue-get-config-reply.c', line 93 static VALUE queue_get_config_reply_port( VALUE self ) { return rb_hash_aref( rb_iv_get( self, "@attribute" ), ID2SYM( rb_intern( "port" ) ) ); } |
#queues ⇒ Array<PacketQueue>
An array of PacketQueue objects. A packet queue is further classified depending on its properties. Currently only a minimum-rate type queue supported.
106 107 108 109 |
# File 'ruby/trema/queue-get-config-reply.c', line 106 static VALUE queue_get_config_reply_queues( VALUE self ) { return rb_hash_aref( rb_iv_get( self, "@attribute" ), ID2SYM( rb_intern( "queues" ) ) ); } |
#transaction_id ⇒ Number
Transaction ids, message sequence numbers matching requests to replies.
82 83 84 85 |
# File 'ruby/trema/queue-get-config-reply.c', line 82 static VALUE queue_get_config_reply_transaction_id( VALUE self ) { return rb_hash_aref( rb_iv_get( self, "@attribute" ), ID2SYM( rb_intern( "transaction_id" ) ) ); } |