Add TcpSocket
methods to set reuseport and reuseaddr to UdpSocket
#5485
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.
I'm working on porting an existing udp multicast based application to rust and I need to to be able to have multiple versions of the program reading from the same port in a multicast session. (Made possible by
reuseaddr
with udp and multicast)Describe the solution you'd like
These methods exist for
TcpSocket
and I'd like to see them onUdpSocket
Describe alternatives you've considered
I hear its possible to bind a socket and give it to tokio. I have found some comments in the source and some github issues to this effect but I haven't found documentation.
Additional context
TcpSocket
#3082 asking for this for tcp socketsThe text was updated successfully, but these errors were encountered: