Sha256: 9c1ce8018bdcc0a661fff7149a0167cada0778a09258cab3a4b3da3771e1c560

Contents?: true

Size: 559 Bytes

Versions: 3

Compression:

Stored size: 559 Bytes

Contents

require 'pio'

request = Pio::Features::Request.new
request.to_binary  # => Features Request message in binary format.

# The Features xid (transaction_id)
# should be same as that of the request.
reply = Pio::Features::Reply.new(xid: request.xid,
                                 dpid: 0x123,
                                 n_buffers: 0x100,
                                 n_tables: 0xfe,
                                 capabilities: 0xc7,
                                 actions: 0xfff)
reply.to_binary  # => Features Reply message in binary format.

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pio-0.8.1 examples/features_new.rb
pio-0.8.0 examples/features_new.rb
pio-0.7.0 examples/features_new.rb