[luatex] IPC best practices?

Hans Hagen pragma at wxs.nl
Mon Feb 13 16:19:41 CET 2017


On 2/13/2017 3:19 PM, Patrick Gundlach wrote:
>
>> Am 12.02.2017 um 17:56 schrieb Hans Hagen <pragma at wxs.nl>:
>>
>> On 2/11/2017 3:04 PM, Patrick Gundlach wrote:
>>> Hi all,
>>>
>>> I have a bit of a vague question about inter process communication. The setup is a program written in Go (but that should not matter very much) that starts one LuaTeX process as a child. Supported systems are Linux, Windows and Mac. Now I would like to talk between the parent process (Go) and the child process (LuaTeX) such as:
>>>
>>>  parent: "Hello child, please do this"
>>>  child: "hi parent, I have done this, here is the result"
>>>
>>> and so on.
>>>
>>> What is the cleanest way to do this? I used to do that over TCP sockets (talking on a defined port on the local host), but this does not seem as the optimal solution. For example on Windows I get a "firewall warning" that the user has to click away.
>>>
>>> Any idea on that topic?
>>
>> use sockets (socket library is present)
>
> Do you mean TCP sockets or unix sockets? If the second: is this well supported by windows? I can't really find a documentation on that.

i normaly use tcp ... no problems on windows

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the luatex mailing list