We need an API for unix sockets
Right now we have a facility to listen on unix sockets for RPC, and we might want to have that for dns and socks as well. Additionally, we want the ability to have onion services (via tor-hsrproxy) connect to local unix sockets.
And to complicate things further, we might eventually want to involve Windows named sockets, and whatever else exists in this area.
This won't be too hard to build but there are design issues to think about.
- Should this be a new API for tor-rtcompat?
- Should this be an optional
UnixSocketProvider
that is only present when building fortarget_family = "unix"
? - Should there be an
AbstractSocketProvider
that can take AF_UNIX addresses as well asSocketAddr
s?
If I were building this without guidance, I think I would answer all three of those questions "yes". But what do you think? (cc @gabi-250 @Diziet)
See also #827 for nomenclature, which I am sure I am getting wrong here.