Skip to content

Add peer_addr function to UdpSocket #59104

Closed
@LinusU

Description

@LinusU

Long background: https://users.rust-lang.org/t/query-wether-a-udpsocket-has-been-connect-ed/26076

I think it would be nice if we could add the peer_addr (from TcpStream & UnixStream) to UdpSocket, this would work exactly the same as TcpStream (getpeername) and return the address that was previously passed to connect.

I'd be happy to try and take a stab at this! 🚀

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions