Class: OpenSLP::Structs::SLPSrvURL

Inherits:
FFI::ManagedStruct
  • Object
show all
Extended by:
Functions
Defined in:
lib/slp/structs.rb

Constant Summary

Constants included from Functions

Functions::SLPError

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.release(pointer) ⇒ Object



16
17
18
# File 'lib/slp/structs.rb', line 16

def self.release(pointer)
  SLPFree(pointer) unless pointer.null?
end

Instance Method Details

#hostObject



24
25
26
# File 'lib/slp/structs.rb', line 24

def host
  self[:s_pcHost]
end

#net_familyObject



32
33
34
# File 'lib/slp/structs.rb', line 32

def net_family
  self[:s_pcNetFamily]
end

#portObject



28
29
30
# File 'lib/slp/structs.rb', line 28

def port
  self[:s_iPort]
end

#service_typeObject



20
21
22
# File 'lib/slp/structs.rb', line 20

def service_type
  self[:s_pcSrvType]
end

#url_remainderObject



36
37
38
# File 'lib/slp/structs.rb', line 36

def url_remainder
  self[:s_pcSrvPart]
end