Skip to content

Remove sys::socket::addr::from_libc_sockaddr from the public API#1215

Merged
bors[bot] merged 1 commit intonix-rust:masterfrom
asomers:from_libc_sockaddr
May 1, 2020
Merged

Remove sys::socket::addr::from_libc_sockaddr from the public API#1215
bors[bot] merged 1 commit intonix-rust:masterfrom
asomers:from_libc_sockaddr

Conversation

@asomers
Copy link
Copy Markdown
Member

@asomers asomers commented Apr 12, 2020

This function never should've been public, since it's basically
impossible to use directly. It's only public due to an oversight from
PR #667 .

This function never should've been public, since it's basically
impossible to use directly.  It's only public due to an oversight from
PR nix-rust#667 .
@asomers asomers requested review from Susurrus and posborne April 12, 2020 21:56
@asomers
Copy link
Copy Markdown
Member Author

asomers commented Apr 12, 2020

CC @mwanner . This is basically cleanup from PR #667 .

Copy link
Copy Markdown
Member

@posborne posborne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

@bors
Copy link
Copy Markdown
Contributor

bors bot commented May 1, 2020

Build succeeded:

@bors bors bot merged commit 609d429 into nix-rust:master May 1, 2020
@coolreader18
Copy link
Copy Markdown
Contributor

This would actually be really useful to me; it's not impossible to use directly if you're doing FFI and get a *const sockaddr.

@asomers asomers deleted the from_libc_sockaddr branch June 4, 2021 03:02
@asomers
Copy link
Copy Markdown
Member Author

asomers commented Jun 4, 2021

This would actually be really useful to me; it's not impossible to use directly if you're doing FFI and get a *const sockaddr.

What is your use case? How are you getting the *const sockaddr?

@coolreader18
Copy link
Copy Markdown
Contributor

Well I suppose I actually have a socket2::SockAddr, so at the low level it's from something like getsockname or getpeername or recvfrom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants