Re: Adding networking to Uxn/Varvara programs using UCSPI/s6-networking?

From: Isaac Beckett <isaactbeckett_at_gmail.com>
Date: Tue, 24 Sep 2024 20:40:01 -0400

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:40:01 CEST

This archive was generated by hypermail 2.4.0 : Wed Sep 25 2024 - 02:40:32 CEST