n0-computer / iroh

A toolkit for building distributed applications
https://iroh.computer
Apache License 2.0
2.31k stars 148 forks source link

Quic-rpc transport that does not use a port #899

Open rklaehn opened 1 year ago

rklaehn commented 1 year ago

The port is annoying, especially when running multiple irohs on one machine, and in tests.

I think with https://crates.io/crates/interprocess we could have a platform independent way to do use a local socket. How it would work: you create a file in .iroh. On unix this is an unix domain socket. On windows, this is the name of a named pipe. Supposedly win11 even supports UDS, but we will have to support win10.

We just need a quic-rpc transport that uses interprocess. Does not have to be extremely fast, since we don't send the data over this channel anymore.

rklaehn commented 1 year ago

This is a draft PR to add UDS support to quic-rpc for this https://github.com/n0-computer/quic-rpc/pull/48