[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MirageOS-devel] Are mirage-tcpip.direct and .unix interchangeable?



On Mon, 12 Aug 2019 at 11:22, Anil Madhavapeddy <anil@xxxxxxxxxx> wrote:
>
> On 11 Aug 2019, at 20:46, Thomas Leonard <talex5@xxxxxxxxx> wrote:
> >
> > On Sat, 10 Aug 2019 at 19:51, orbifx <fox@xxxxxxxxxxxxx> 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
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/mirageos-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.