A Ruby wrapper for OpenSLP using FFI.
gem install rslp
gem cert --add <(curl -Ls https://raw.githubusercontent.com/djberg96/rslp/main/certs/djberg96_pub.pem)
require 'rslp'
# See docs for more methods
OpenSLP::SLP.new do |slp|
p slp.find_services('myservice:myorg')
p slp.find_scopes
p slp.find_service_types
end
None that I'm aware of in this library.
However, the OpenSLP implementation itself has at least one bug in the
SLPFindSrvs()
function, where specifying a filter could cause it to crash.
This means that specifying a filter to the OpenSLP::SLP.find_services
method
could cause a crash. See openslp-org/openslp#11
for details.
Please report any other bugs on the project page at:
https://github.com/djberg96/rslp
You will need an OpenSLP server running on localhost to run all of the specs. The easiest way to do that is to install docker and run:
docker run -d -p 427:427/tcp -p 427:427/udp vcrhonek/openslp
Once you're done just terminate the container.
Also see Novell's SLP implementation.
None at this time.
Please contact me about taking over maintenance of this library if you are interested. I'm not actually using it myself, so maintenance and releases will be sporadic at best.
Why then? I originally wrote most of this when I thought we might need it for a project at work. That never materialized, but I hated to let it go to waste, so I've published what I completed and may occasionally tinker with it from time to time.
Apache-2.0
(C) 2003-2022 Daniel J. Berger, All Rights Reserved
This package is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantability and fitness for a particular purpose.
Daniel J. Berger