diff options
author | Haibo Huang <hhb@google.com> | 2020-11-02 18:45:36 -0800 |
---|---|---|
committer | Haibo Huang <hhb@google.com> | 2020-11-02 18:45:36 -0800 |
commit | 3a1a50620397b347db105e65b3cab650c2c7bb72 (patch) | |
tree | fe408064c79f43f6575f398a4a33a4f9c4d69adf /src/sys/shell/tcp.rs | |
parent | 547d80671d6fbd3df9883d1670a6700eda533536 (diff) | |
download | mio-3a1a50620397b347db105e65b3cab650c2c7bb72.tar.gz |
Upgrade rust/crates/mio to 0.7.5
Test: make
Change-Id: I0b3424bb3d27a0db04cd91b8573fca44e311c491
Diffstat (limited to 'src/sys/shell/tcp.rs')
-rw-r--r-- | src/sys/shell/tcp.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/sys/shell/tcp.rs b/src/sys/shell/tcp.rs index de1520b..3073d42 100644 --- a/src/sys/shell/tcp.rs +++ b/src/sys/shell/tcp.rs @@ -32,6 +32,20 @@ pub(crate) fn set_reuseaddr(_: TcpSocket, _: bool) -> io::Result<()> { os_required!(); } +pub(crate) fn get_reuseaddr(_: TcpSocket) -> io::Result<bool> { + os_required!(); +} + +#[cfg(all(unix, not(any(target_os = "solaris", target_os = "illumos"))))] +pub(crate) fn set_reuseport(_: TcpSocket, _: bool) -> io::Result<()> { + os_required!(); +} + +#[cfg(all(unix, not(any(target_os = "solaris", target_os = "illumos"))))] +pub(crate) fn get_reuseport(_: TcpSocket) -> io::Result<bool> { + os_required!(); +} + pub(crate) fn set_linger(_: TcpSocket, _: Option<Duration>) -> io::Result<()> { os_required!(); } @@ -39,3 +53,7 @@ pub(crate) fn set_linger(_: TcpSocket, _: Option<Duration>) -> io::Result<()> { pub fn accept(_: &net::TcpListener) -> io::Result<(net::TcpStream, SocketAddr)> { os_required!(); } + +pub(crate) fn get_localaddr(_: TcpSocket) -> io::Result<SocketAddr> { + os_required!(); +} |