Sha256: b7e2d84eaf4206dc6699a8a51068c9e0cfd43cb600b6914ce6a0c1ecfb832730

Contents?: true

Size: 637 Bytes

Versions: 3

Compression:

Stored size: 637 Bytes

Contents

require 'socket'
require 'ipaddr'
require 'json'

require 'xwot_discovery/version'
require 'xwot_discovery/message'
require 'xwot_discovery/protocol'
require 'xwot_discovery/service_listener'
require 'xwot_discovery/service_protocol'
require 'xwot_discovery/service'
require 'xwot_discovery/resource'


module XwotDiscovery

  def self.service
    if @service.nil?
      init
      @service.start
      @service
    else
      @service
    end
  end

  private

  def self.init
    @protocol ||=  XwotProtocol.new
    @service_protocol ||= XwotServiceProtocol.new(@protocol)
    @service ||= XwotService.new @service_protocol
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
xwot_discovery-0.1.1 lib/xwot_discovery.rb
xwot_discovery-0.1.0 lib/xwot_discovery.rb
xwot_discovery-0.1.0.pre lib/xwot_discovery.rb