Class: OpenSLP::Structs::SLPSrvURL
- Inherits:
-
FFI::ManagedStruct
- Object
- FFI::ManagedStruct
- OpenSLP::Structs::SLPSrvURL
- Extended by:
- Functions
- Defined in:
- lib/slp/structs.rb
Constant Summary
Constants included from Functions
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
#host ⇒ Object
24 25 26 |
# File 'lib/slp/structs.rb', line 24 def host self[:s_pcHost] end |
#net_family ⇒ Object
32 33 34 |
# File 'lib/slp/structs.rb', line 32 def net_family self[:s_pcNetFamily] end |
#port ⇒ Object
28 29 30 |
# File 'lib/slp/structs.rb', line 28 def port self[:s_iPort] end |
#service_type ⇒ Object
20 21 22 |
# File 'lib/slp/structs.rb', line 20 def service_type self[:s_pcSrvType] end |
#url_remainder ⇒ Object
36 37 38 |
# File 'lib/slp/structs.rb', line 36 def url_remainder self[:s_pcSrvPart] end |