socket2::sys

Function socketpair

Source
pub(crate) fn socketpair(
    family: c_int,
    ty: c_int,
    protocol: c_int,
) -> Result<[c_int; 2]>