Function: jsonrpc-process-connection
jsonrpc-process-connection is a byte-compiled function defined in
jsonrpc.el.gz.
Signature
(jsonrpc-process-connection &rest SLOTS)
Documentation
Create a new object of class type jsonrpc-process-connection(var)/jsonrpc-process-connection(fun).
Source Code
;; Defined in /usr/src/emacs/lisp/jsonrpc.el.gz
;;; Specific to `jsonrpc-process-connection'
;;;
(defclass jsonrpc-process-connection (jsonrpc-connection)
((-process
:initarg :process :accessor jsonrpc--process
:documentation "Process object wrapped by the this connection.")
(-expected-bytes
:initform nil
:accessor jsonrpc--expected-bytes
:documentation "How many bytes declared by server.")
(-on-shutdown
:accessor jsonrpc--on-shutdown
:initform #'ignore
:initarg :on-shutdown
:documentation "Function run when the process dies.")
(-autoport-inferior
:initform nil
:documentation "Used by `jsonrpc-autoport-bootstrap'."))
:documentation "A JSONRPC connection over an Emacs process.
The following initargs are accepted:
:PROCESS (mandatory), a live running Emacs process object or a
function producing one such object. If a function, it is passed
the `jsonrpc-process-connection' object. The process represents
either a pipe connection to locally running process or a stream
connection to a network host. The remote endpoint is expected to
understand JSONRPC messages with basic HTTP-style enveloping
headers such as \"Content-Length:\".
:ON-SHUTDOWN (optional), a function of one argument, the
connection object, called when the process dies.")