I could also use said helper program to implement a FIFO setup. I still think FIFOs, being files, might be a bit easier. But this *would* let me implement that interface in Uxn. It would require the FIFOs to be set up before hand, but still. I think I’d end up with an execline script that sets everything up then launches the Uxn program. Then that can implement the actual logic/control flow.
> On Sep 24, 2024, at 8:40 PM, Isaac Beckett <isaactbeckett_at_gmail.com> wrote:
>
> Huh, yeah, I suppose that would work. Connect stdin to ioconnect’s stdout, and vice versa. Would have to look up how to do that because I don’t know the syntax for it, but then I can use it as the other end of tlsclient to connect to an https host, and tcpclient for http.
>
> Could also add a helper program/script to allow disconnecting from one host and connecting to another, enabling/disabling TLS, etc.
>
>
>
>>> On Sep 24, 2024, at 7:23 AM, Brett Neumeier <bneumeier_at_gmail.com> wrote:
>>>
>>
>>> On Tue, Sep 24, 2024, 12:43 AM Isaac Beckett <isaactbeckett_at_gmail.com> wrote:
>>> Their support for stdio also seems a bit barebones. You can read stdin,
>>> write to stdout, but I don't know how that relates to "reading on
>>> descriptor 6" and "writing on descriptor 7" as explained in the
>>> documentation for s6-tlsclient.
>>
>>
>> Perhaps you could use s6-ioconnect to map the standard input and output of your program to file descriptors 6 and 7? It looks like that is exactly what it's for.
>>
Received on Wed Sep 25 2024 - 02:46:25 CEST