(
domain: AddressFamily,
type_: SocketType,
protocol: Option<Protocol>,
)
| 43 | /// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Creating-a-Socket.html |
| 44 | #[inline] |
| 45 | pub fn socket( |
| 46 | domain: AddressFamily, |
| 47 | type_: SocketType, |
| 48 | protocol: Option<Protocol>, |
| 49 | ) -> io::Result<OwnedFd> { |
| 50 | backend::net::syscalls::socket(domain, type_, protocol) |
| 51 | } |
| 52 | |
| 53 | /// `socket_with(domain, type_ | flags, protocol)`—Creates a socket, with |
| 54 | /// flags. |
no outgoing calls