-
Notifications
You must be signed in to change notification settings - Fork 231
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
Match the standard library's interface for unix sockets on unix. #403
Conversation
to enable determining what type of AF_UNIX address it is, if any. Enable retrieving the pathname or abstract address of the socket, if applicable. Also, fix some typos in CONTRIBUTING.
Co-authored-by: Thomas de Zeeuw <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Only question is Fuchsia, we might have to remove it for now (sorry for suggesting it in the first place).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One final suggestion based on @tamird and @ghanan94's feedback.
Co-authored-by: Thomas de Zeeuw <[email protected]>
Thanks @t4lz! |
Following #332, currently unix only. Should this interface also be made available on Windows?
This PR adds to
SockAddr
methods to get the path of the unix socket address on unix.It also adds the new methods to the tests.