Method: Wamupd::AvahiService#identifier
- Defined in:
- lib/wamupd/avahi_service.rb
#identifier ⇒ Object
A key that can be used to identify this service. Is the subtype-type followed by a - followed by the port
49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/wamupd/avahi_service.rb', line 49 def identifier retval = "" if (@subtype) retval += @subtype retval += "." end if (@type) retval += @type retval += "-" end retval += @port.to_s return retval end |