Function: zeroconf-list-services

zeroconf-list-services is a byte-compiled function defined in zeroconf.el.gz.

Signature

(zeroconf-list-services TYPE)

Documentation

Return all discovered Avahi services for a given service type TYPE.

The service type is one of the returned values of zeroconf-list-service-types. The return value is a list
(SERVICE1 SERVICE2 ...). See zeroconf-services-hash for the
format of SERVICE.

Source Code

;; Defined in /usr/src/emacs/lisp/net/zeroconf.el.gz
(defun zeroconf-list-services (type)
  "Return all discovered Avahi services for a given service type TYPE.
The service type is one of the returned values of
`zeroconf-list-service-types'.  The return value is a list
\(SERVICE1 SERVICE2 ...).  See `zeroconf-services-hash' for the
format of SERVICE."
  (let (result)
    (maphash
     (lambda (_key value)
       (when (equal type (zeroconf-service-type value))
	 (push value result)))
     zeroconf-services-hash)
    (delete-dups result)))