Skip to content
Permalink
Browse files

Fix cloudabi

  • Loading branch information...
sfackler committed Feb 24, 2019
1 parent 5ca3b00 commit 4c13791537d3a13ba667b60ec1314d1361679987
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/libstd/sys/cloudabi/shims/net.rs
@@ -1,5 +1,5 @@
use fmt;
use io;
use io::{self, IoVec, IoVecMut};
use net::{Ipv4Addr, Ipv6Addr, Shutdown, SocketAddr};
use time::Duration;
use sys::{unsupported, Void};
@@ -42,10 +42,18 @@ impl TcpStream {
match self.0 {}
}

pub fn read_vectored(&self, _: &mut [IoVecMut<'_>]) -> io::Result<usize> {
match self.0 {}
}

pub fn write(&self, _: &[u8]) -> io::Result<usize> {
match self.0 {}
}

pub fn write_vectored(&self, _: &[IoVec<'_>]) -> io::Result<usize> {
match self.0 {}
}

pub fn peer_addr(&self) -> io::Result<SocketAddr> {
match self.0 {}
}

0 comments on commit 4c13791

Please sign in to comment.
You can’t perform that action at this time.