Request new method peer_addr
for tokio::net::UdpSocket
#3312
Labels
A-tokio
Area: The main tokio crate
C-feature-request
Category: A feature request.
M-net
Module: tokio/net
Is your feature request related to a problem? Please describe.
As in the question #3309, I want to obtain
peer_addr
intokio::net::UdpSocket
, asstd::net::UdpSocket::peer_addr
.Describe the solution you'd like
Provided by @Darksonn in Discord, implement it for
mio::net::UdpSocket
, then forward it totokio::net::UdpSocket
.Describe alternatives you've considered
Provided by @Darksonn in Discord, downgrade to
RawFd
and retrievepeer_addr
, which is a workaround.The text was updated successfully, but these errors were encountered: