Skip to content
Daniel Berger edited this page Oct 22, 2022 · 2 revisions

Description

The rslp library is a Ruby interface for openslp, an open source version of the Service Location Protocol.

http://www.openslp.org/

Example

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

Singleton Methods

  • new
  • escape_reserved
  • get_property
  • parse_service_url
  • refresh_interval
  • set_property
  • unescape_reserved

Instance Methods

  • close
  • delete_service_attributes
  • deregister
  • find_scopes
  • find_services
  • find_service_attributes
  • find_service_types
  • register
Clone this wiki locally