Why are SocketAddrV4/SocketAddrV6 based on low level sockaddr_in[6]?

See also the previous rust-internals thread:

As noted in that thread and the linked RFC, avoiding dependence on libc::sockaddr would allow potentially moving these types to core, which would be nice for embedded applications.

1 Like