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 <bneume...@gmail.com> wrote: > > >> On Tue, Sep 24, 2024, 12:43 AM Isaac Beckett <isaactbeck...@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. >