diff options
| author | bors <bors@rust-lang.org> | 2018-07-11 14:15:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-07-11 14:15:01 +0000 |
| commit | 66787e05242d86e0bcfa227265559330c45cdc42 (patch) | |
| tree | a08fb5bb53af23aca329a51ebd38f0a850225c76 /src/libstd/sys/unix | |
| parent | 11432ba98043ee0ade961bdedb4b785bf06c086e (diff) | |
| parent | 0b56e7f1a911f1157cd46cedbb1a0544e3ee3c3c (diff) | |
Auto merge of #51553 - jD91mZM2:uds, r=sfackler
Unix sockets on redox This is done using the ipcd daemon. It's not exactly like unix sockets because there is not actually a physical file for the path, but it's close enough for a basic implementation :) This allows mio-uds and tokio-uds to work with a few modifications as well, which is exciting!
Diffstat (limited to 'src/libstd/sys/unix')
| -rw-r--r-- | src/libstd/sys/unix/ext/net.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstd/sys/unix/ext/net.rs b/src/libstd/sys/unix/ext/net.rs index e277b1aa7b5..55f43ccd7db 100644 --- a/src/libstd/sys/unix/ext/net.rs +++ b/src/libstd/sys/unix/ext/net.rs @@ -524,6 +524,9 @@ impl UnixStream { /// println!("Got error: {:?}", err); /// } /// ``` + /// + /// # Platform specific + /// On Redox this always returns None. #[stable(feature = "unix_socket", since = "1.10.0")] pub fn take_error(&self) -> io::Result<Option<io::Error>> { self.0.take_error() @@ -846,6 +849,9 @@ impl UnixListener { /// println!("Got error: {:?}", err); /// } /// ``` + /// + /// # Platform specific + /// On Redox this always returns None. #[stable(feature = "unix_socket", since = "1.10.0")] pub fn take_error(&self) -> io::Result<Option<io::Error>> { self.0.take_error() |
