Function: network-connection-to-service

network-connection-to-service is an autoloaded, interactive and byte-compiled function defined in net-utils.el.gz.

Signature

(network-connection-to-service HOST SERVICE)

Documentation

Open a network connection to SERVICE on HOST.

This command uses network-connection-service-alist, which see.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/net/net-utils.el.gz
;;;###autoload
(defun network-connection-to-service (host service)
  "Open a network connection to SERVICE on HOST.
This command uses `network-connection-service-alist', which see."
  (interactive
   (list
    (let ((default (ffap-machine-at-point)))
      (read-string (format-prompt "Host" default) nil nil default))
    (completing-read "Service: "
		     (mapcar
                      (lambda (elt)
                        (list (symbol-name (car elt))))
		      network-connection-service-alist))))
  (network-connection
   host
   (cdr (assoc (intern service) network-connection-service-alist))))