-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: 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.Relevant to the library API team, which will review and decide on the PR/issue.
Description
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! 🚀
MOZGIII
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: 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.Relevant to the library API team, which will review and decide on the PR/issue.