Function: dictionary-connection-p
dictionary-connection-p is a byte-compiled function defined in
dictionary-connection.el.gz.
Signature
(dictionary-connection-p CONNECTION)
Documentation
Return non-nil if CONNECTION is a connection object.
Source Code
;; Defined in /usr/src/emacs/lisp/net/dictionary-connection.el.gz
;;; dictionary-connection.el --- TCP-based client connection for dictionary -*- lexical-binding:t -*-
;; Copyright (C) 2021-2024 Free Software Foundation, Inc.
;; Author: Torsten Hilbrich <torsten.hilbrich@gmx.net>
;; Keywords: network
;; This file is part of GNU Emacs.
;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;; dictionary-connection allows handling TCP-based connections in
;; client mode where text-based information is exchanged. There is
;; special support for handling CR LF (and the usual CR LF . CR LF
;; terminator).
;;; Code:
(defsubst dictionary-connection-p (connection)
"Return non-nil if CONNECTION is a connection object."
(get connection 'connection))