From c6480e8b6b13401030c52f3c2b4fcc4e80c14481 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Wed, 20 Apr 2016 21:42:19 -0700 Subject: Remove IPV6_V6ONLY functionality These settings can only be adjusted before bind time, which doesn't make sense in the current set of functionality. These methods are stable, but haven't hit a stable release yet. Closes #33052 [breaking-change] --- src/libstd/sys/common/net.rs | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/libstd/sys') diff --git a/src/libstd/sys/common/net.rs b/src/libstd/sys/common/net.rs index d5d967114c4..54b9b466c42 100644 --- a/src/libstd/sys/common/net.rs +++ b/src/libstd/sys/common/net.rs @@ -247,15 +247,6 @@ impl TcpStream { Ok(raw as u32) } - pub fn set_only_v6(&self, only_v6: bool) -> io::Result<()> { - setsockopt(&self.inner, c::IPPROTO_IPV6, c::IPV6_V6ONLY, only_v6 as c_int) - } - - pub fn only_v6(&self) -> io::Result { - let raw: c_int = getsockopt(&self.inner, c::IPPROTO_IPV6, c::IPV6_V6ONLY)?; - Ok(raw != 0) - } - pub fn take_error(&self) -> io::Result> { self.inner.take_error() } @@ -544,15 +535,6 @@ impl UdpSocket { Ok(raw as u32) } - pub fn set_only_v6(&self, only_v6: bool) -> io::Result<()> { - setsockopt(&self.inner, c::IPPROTO_IPV6, c::IPV6_V6ONLY, only_v6 as c_int) - } - - pub fn only_v6(&self) -> io::Result { - let raw: c_int = getsockopt(&self.inner, c::IPPROTO_IPV6, c::IPV6_V6ONLY)?; - Ok(raw != 0) - } - pub fn take_error(&self) -> io::Result> { self.inner.take_error() } -- cgit 1.4.1-3-g733a5