Send a file descriptor over a Unix domain socket. Uses sendmsg with SCM_RIGHTS ancillary data. (POSIX only, throws on Windows)
Unix domain socket file descriptor
File descriptor to send
bytes sent (>= 0) on success
Send a file descriptor over a Unix domain socket. Uses sendmsg with SCM_RIGHTS ancillary data. (POSIX only, throws on Windows)