On Mon, 12 Aug 2019 at 11:22, Anil Madhavapeddy <[email protected]> wrote:
>
> On 11 Aug 2019, at 20:46, Thomas Leonard <[email protected]> wrote:
> >
> > On Sat, 10 Aug 2019 at 19:51, orbifx <[email protected]> wrote:
> >>
> >> I'm writing a networking service that uses TLS encryption. I don't want to 
> >> have to deal with the exceptions, so I've gone for the Flow interface.
> >>
> >> Am I able to run applications using Flow on Linux?
> >
> > Yes. mirage-capnp does that:
> >
> > https://github.com/mirage/capnp-rpc/blob/master/unix/unix_flow.mli
>
> Nice! We could replace the mirage-flow-unix implementation with your version 
> that extends it with connect/socketpair.

Yes. Just trying to remember why I made my own version instead of
using Mirage_flow_unix.Fd. Looking at the code, I think I couldn't use
it because its read operation reads the whole stream in one go,
whereas for RPC you need to read only what is currently available. I
also seem to have avoided using Lwt_io, but I don't remember why now.

-- 
talex5 (GitHub/Twitter)        http://roscidus.com/blog/
GPG: 5DD5 8D70 899C 454A 966D  6A51 7513 3C8F 94F6 E0CC

_______________________________________________
MirageOS-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/mirageos-devel

Reply via email to