Skip to content

Can't move to 0.6 due to SockAddrStorage vs. libc::sockaddr_storage limitations #613

@shaun-cox

Description

@shaun-cox

I'm trying to adapt to the breaking change from 0.5.10 to 0.6, but don't see a way for my use cases of socket2::SockAddr::new which now takes a SockAddrStorage instead of the previous libc::sockaddr_storage. Also, the latter is Copy and Clone, while the former is not. I cannot construct a SockAddrStorage from a libc::sockaddr_storage that I obtain from a syscall like recvmmsg either, so it seems I'm stuck.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions