Function: nrepl--port-open-p

nrepl--port-open-p is a byte-compiled function defined in nrepl-client.el.

Signature

(nrepl--port-open-p HOST PORT)

Documentation

Return non-nil if a TCP connection to HOST:PORT can be established.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/nrepl-client.el
(defun nrepl--port-open-p (host port)
  "Return non-nil if a TCP connection to HOST:PORT can be established."
  (condition-case nil
      (let ((proc (open-network-stream "nrepl-port-check" nil host port)))
        (delete-process proc)
        t)
    (error nil)))