socket2::sys

Function socket

Source
pub(crate) fn socket(family: c_int, ty: c_int, protocol: c_int) -> Result<c_int>