-
Notifications
You must be signed in to change notification settings - Fork 341
Abstract unix sockets on Linux platform #623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We've generally been conservative in what we add, limiting ourselves to only the scope of the stdlib and extensions that are specific to async programming (such as timeout and concurrency). But I'm starting to wonder if we could be a bit more forward in that regard, and introduce extensions that would make sense to propose in @zeenix do you maybe have a design outline for what this API would look like? That'd be massively helpful in determining the scope of this addition. The same would apply to #624 too. |
Cool.
TBH I haven't yet thought of that. I'll do that and come back to you on this. :) In the meantime, if you've some ideas already, please do share. |
Reading the manual page, the first thought that came to mind was to do it the same way as Linux does it but that doesn't map nicely at all to idiomatic Rust and will require changes to Path API itself. How about a Linux-specific constructor to pub async fn connect_abstract(name: OsStr) -> Result<UnixStream> Looking at the source, it should not be hard to implement in |
Oh and with this solution, pub async fn bind_abstract(name: OsStr) -> Result<UnixListener> |
I would also be interested in this feature. Since the tracking issue on |
This would be at least very useful for D-Bus on Linux. Although newer software/distros (systemd-based) do not make use of abstract sockets,
dbus-daemon
by default still uses abstract unix sockets. It would be nice to support these for backwards compitibility. There is an issue on std for this as well with more details.The text was updated successfully, but these errors were encountered: