Function systemd::daemon::is_socket [] [src]

pub fn is_socket(
    fd: Fd,
    family: Option<c_uint>,
    socktype: Option<SocketType>,
    listening: Listening
) -> Result<bool>

Identifies whether the passed file descriptor is a socket. If family and type are supplied, they must match as well. See Listening for listening check parameters.