about summary refs log tree commit diff
path: root/library/std/src/net/tcp
AgeCommit message (Collapse)AuthorLines
2023-03-06Implement read_buf for a few more typesTomasz Miąsko-1/+27
Implement read_buf for TcpStream, Stdin, StdinLock, ChildStdout, ChildStderr (and internally for AnonPipe, Handle, Socket), so that it skips buffer initialization. The other provided methods like read_to_string and read_to_end are implemented in terms of read_buf and so benefit from the optimization as well. This commit also implements read_vectored and is_read_vectored where applicable.
2023-02-28Add QNX Neutrino support to libstdFlorian Bartels-1/+4
Co-authored-by: gh-tr <troach@qnx.com>
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-6/+5
This updates the standard library's documentation to use the new syntax. The documentation is worthwhile to update as it should be more idiomatic (particularly for features like this, which are nice for users to get acquainted with). The general codebase is likely more hassle than benefit to update: it'll hurt git blame, and generally updates can be done by folks updating the code if (and when) that makes things more readable with the new format. A few places in the compiler and library code are updated (mostly just due to already having been done when this commit was first authored).
2022-03-09Ignore `close_read_wakes_up` test on SGX platformRaoul Strackx-0/+1
2022-03-07Enable `close_read_wakes_up` on WindowsChris Denton-1/+0
2021-08-30add `TcpStream::set_linger` and `TcpStream::linger`ibraheemdev-0/+15
2021-06-15Rename ErrorKind::Unknown to Uncategorized.Mara Bos-1/+1
2021-06-15Redefine `ErrorKind::Other` and stop using it in std.Mara Bos-1/+1
2020-08-31std: move "mod tests/benches" to separate filesLzu Tao-0/+862
Also doing fmt inplace as requested.