mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
Remove UDP only_v6 accessors. (#94)
These fns are not included on std's UdpSocket.
This commit is contained in:
parent
ae627db266
commit
c1c06f8ac1
@ -372,27 +372,6 @@ impl UdpSocket {
|
|||||||
interface: u32) -> io::Result<()> {
|
interface: u32) -> io::Result<()> {
|
||||||
self.io.get_ref().leave_multicast_v6(multiaddr, interface)
|
self.io.get_ref().leave_multicast_v6(multiaddr, interface)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sets the value for the `IPV6_V6ONLY` option on this socket.
|
|
||||||
///
|
|
||||||
/// If this is set to `true` then the socket is restricted to sending and
|
|
||||||
/// receiving IPv6 packets only. In this case two IPv4 and IPv6 applications
|
|
||||||
/// can bind the same port at the same time.
|
|
||||||
///
|
|
||||||
/// If this is set to `false` then the socket can be used to send and
|
|
||||||
/// receive packets from an IPv4-mapped IPv6 address.
|
|
||||||
pub fn set_only_v6(&self, only_v6: bool) -> io::Result<()> {
|
|
||||||
self.io.get_ref().set_only_v6(only_v6)
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Gets the value of the `IPV6_V6ONLY` option for this socket.
|
|
||||||
///
|
|
||||||
/// For more information about this option, see [`set_only_v6`].
|
|
||||||
///
|
|
||||||
/// [`set_only_v6`]: #method.set_only_v6
|
|
||||||
pub fn only_v6(&self) -> io::Result<bool> {
|
|
||||||
self.io.get_ref().only_v6()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl fmt::Debug for UdpSocket {
|
impl fmt::Debug for UdpSocket {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user