about summary refs log tree commit diff
path: root/library/std/src/sys_common/net.rs
AgeCommit message (Collapse)AuthorLines
2021-08-30add `TcpStream::set_linger` and `TcpStream::linger`ibraheemdev-0/+8
2021-08-19I/O safety.Dan Gohman-24/+18
Introduce `OwnedFd` and `BorrowedFd`, and the `AsFd` trait, and implementations of `AsFd`, `From<OwnedFd>` and `From<T> for OwnedFd` for relevant types, along with Windows counterparts for handles and sockets. Tracking issue: - <https://github.com/rust-lang/rust/issues/87074> RFC: - <https://github.com/rust-lang/rfcs/blob/master/text/3128-io-safety.md>
2021-03-21Use io::Error::new_const everywhere to avoid allocations.Mara Bos-2/+2
2020-12-07Fix net.rs - rsplitn() returns a reverse iteratorEric Arellano-2/+1
2020-12-07Dogfood 'str_split_once()` in the std libEric Arellano-3/+1
2020-08-31std: move "mod tests/benches" to separate filesLzu Tao-23/+3
Also doing fmt inplace as requested.
2020-08-19Minor changes to Ipv4AddrLzu Tao-4/+4
* Impl IntoInner rather than AsInner for Ipv4Addr * Add some comments * Add test to show endiannes of Ipv4Addr display
2020-07-27mv std libs to library/mark-0/+697