-
Notifications
You must be signed in to change notification settings - Fork 228
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
Expose address from SockAddr for unix domains #332
Comments
Do you mean https://docs.rs/socket2/latest/socket2/struct.SockAddr.html#method.unix? I think we simply forgot to expose it in #249.
It's not ;) |
I meant more going the other way from |
We could add |
What is the desired behavior for abstract unix sockets where there is a name associated with the Unnamed unix sockets would presumably return |
I think we can match the |
Okay, I think I have a good understanding of the desired API then -- I can take a stab at this and open a PR? |
Sounds good. |
Hey, this seems inactive and we need it for metalbear-co/mirrord#1105 . |
Pr would be welcome 👍 |
This has been done in #403. |
Only on unix though, so maybe there should still be an open issue for Windows. |
Reopening for Windows |
It would be nice to be able to access the path of a unix socket from
SockAddr
similar tovsock_address
socket2
is being considered as a backend for UDS on windows inmio
/tokio
(tokio-rs/mio#1610 (comment)) and, if used, would need to expose the address of unix sockets fromSocketAddr
to mirror the implementation of SocketAddr inmio
for unixThe text was updated successfully, but these errors were encountered: