Sha256: 85c58bb2d820201e347dcfd559bf2f25a62edb189ab707c1b998f53a47e32d2d
Contents?: true
Size: 649 Bytes
Versions: 4
Compression:
Stored size: 649 Bytes
Contents
module Lxi # LXI Constants LXI_OK = 0 LXI_ERROR = -1 # VXI11 Discovery Callbacks BroadcastCallback = FFI::Function.new(:void, %i[pointer pointer]) do |address, interface| puts "Broadcast: #{address.read_string}, #{interface.read_string}" end DeviceCallback = FFI::Function.new(:void, %i[pointer pointer]) do |address, id| puts "Device: #{address.read_string}, #{id.read_string}" end ServiceCallback = FFI::Function.new(:void, %i[pointer pointer pointer int]) do |address, id, service, port| puts "Service: #{address.read_string}, #{id.read_string}, #{service.read_string}, #{port}" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lxi_rb-0.2.26 | lib/lxi/constants.rb |
lxi_rb-0.2.25 | lib/lxi/constants.rb |
lxi_rb-0.2.18 | lib/lxi/constants.rb |
lxi_rb-0.2.12 | lib/lxi/constants.rb |