about summary refs log tree commit diff
path: root/src/libstd/sys/sgx
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-03-22 19:31:16 +0100
committerGitHub <noreply@github.com>2019-03-22 19:31:16 +0100
commit5481b4e1d719a7d6de349c2e7a09574093710554 (patch)
treee001fd07aebdb4b00cbfa02d1663e33ef5911e9e /src/libstd/sys/sgx
parented196221d889ae8a87be677402e4319237ef67f4 (diff)
parent81d5fb5c6fc65e947ff97c02997bfff9a1f6ce16 (diff)
downloadrust-5481b4e1d719a7d6de349c2e7a09574093710554.tar.gz
rust-5481b4e1d719a7d6de349c2e7a09574093710554.zip
Rollup merge of #59106 - LinusU:udp-peer-addr, r=kennytm
Add peer_addr function to UdpSocket

Fixes #59104

This is my first pull request to Rust, so opening early for some feedback.

My biggest question is: where do I add tests?

Any comments very much appreciated!
Diffstat (limited to 'src/libstd/sys/sgx')
-rw-r--r--src/libstd/sys/sgx/net.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/sys/sgx/net.rs b/src/libstd/sys/sgx/net.rs
index e167e917957..81f33c16294 100644
--- a/src/libstd/sys/sgx/net.rs
+++ b/src/libstd/sys/sgx/net.rs
@@ -249,6 +249,10 @@ impl UdpSocket {
         unsupported()
     }
 
+    pub fn peer_addr(&self) -> io::Result<SocketAddr> {
+        match self.0 {}
+    }
+
     pub fn socket_addr(&self) -> io::Result<SocketAddr> {
         match self.0 {}
     }