[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "Asynchronous Requests from Emacs Dynamic Modules"
From: |
Robert Pluim |
Subject: |
Re: "Asynchronous Requests from Emacs Dynamic Modules" |
Date: |
Fri, 20 Nov 2020 17:04:41 +0100 |
"Zhu Zihao" <all_but_last@163.com> writes:
> Ok, But how to do this in Emacs version 25-27?
>
>
> Emacs doesn't support named pipe access, but may be we can use
> `make-network-process` to open a TCP socket. Like this?
>
>
> ```
> (let ((proc (make-network-process :name "fake-proxy-process"
> :server t
> :host 'local
> :filter <filter-to-execute-callback>
> :noquery t
> ;; Detect port automatically
> :service t)))
> (setq <global-proc-var> proc)
> (module-function-initialize-notify (process-contact proc :service)))
> ```
>
>
> But this maybe too strange for user to understand why a dynamic module
> require a TCP port access...
It doesnʼt: you can use unix sockets by specifying :family 'local
Robert