Sha256: d32e2daff474e1f76ea8ea9bb5e8013a15b2dfee040d5ea2f1c022f0e89a348f
Contents?: true
Size: 630 Bytes
Versions: 4
Compression:
Stored size: 630 Bytes
Contents
# frozen_string_literal: true module Lxi # 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.7.0 | lib/lxi/callbacks.rb |
lxi_rb-0.6.4 | lib/lxi/callbacks.rb |
lxi_rb-0.6.3 | lib/lxi/callbacks.rb |
lxi_rb-0.4.9 | lib/lxi/callbacks.rb |