circu.js
    Preparing search index...

    Function sendfd

    • Send a file descriptor over a Unix domain socket. Uses sendmsg with SCM_RIGHTS ancillary data. (POSIX only, throws on Windows)

      Parameters

      • socketFd: number

        Unix domain socket file descriptor

      • fdToSend: number

        File descriptor to send

      Returns number

      bytes sent (>= 0) on success