about summary refs log tree commit diff
path: root/library/std/src/os/linux/net.rs
AgeCommit message (Collapse)AuthorLines
2025-07-01Update version placeholdersJosh Stone-1/+1
2024-08-15proposal to expand (a subset of) linux specific socket capabilities.David Carlier-1/+1
to stabilise the quickack part for now, tcp_deferaccept had been added at a later stage.
2024-07-29Reformat `use` declarations.Nicholas Nethercote-2/+0
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2023-10-25Convert `Unix{Datagram,Stream}::{set_}passcred()` to per-OS traitsJohn Millikin-0/+3
These methods are the pre-stabilized API for obtaining peer credentials from an `AF_UNIX` socket, part of the `unix_socket_ancillary_data` feature. Their current behavior is to get/set one of the `SO_PASSCRED` (Linux), `LOCAL_CREDS_PERSISTENT` (FreeBSD), or `LOCAL_CREDS` (NetBSD) socket options. On other targets the `{set_}passcred()` methods do not exist. There are two problems with this approach: 1. Having public methods only exist for certain targets isn't permitted in a stable `std` API. 2. These options have generally similar purposes, but they are non-POSIX and their details can differ in subtle and surprising ways (such as whether they continue to be set after the next call to `recvmsg()`). Splitting into OS-specific extension traits is the preferred solution to both problems.
2023-04-28replace version placeholdersPietro Albini-2/+2
2023-03-18Stabilise `unix_socket_abstract`John Millikin-2/+2
Fixes https://github.com/rust-lang/rust/issues/85410
2022-09-18Move `unix_socket_abstract` feature API to `SocketAddrExt`.John Millikin-0/+5
2022-09-18Adjust `tcp_quickack` feature to allow other `os::linux::net` features.John Millikin-2/+2
2022-08-13created tcpstream quickack traitBerend-Jan Lange-0/+4
for linux and android