-
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Daniel Berger edited this page Oct 22, 2022
·
2 revisions
The rslp library is a Ruby interface for openslp, an open source version of the Service Location Protocol.
require 'rslp'
OpenSLP::SLP.new(lang: 'en-us', async: false, host: 'localhost') do |slp|
slp.register("service:ntp://time.yourdomain.com", :attributes => {"test" => "yes", "production" => "no"})
p slp.find_scopes
p slp.find_service_types
p slp.find_services("service:ntp")
p slp.find_service_attributes("service:ntp://time.yourdomain.com")
slp.deregister("service:ntp://time.yourdomain.com")
end
- new
- escape_reserved
- get_property
- parse_service_url
- refresh_interval
- set_property
- unescape_reserved
- close
- delete_service_attributes
- deregister
- find_scopes
- find_services
- find_service_attributes
- find_service_types
- register