in reply to How do I send a file through a Socket Connection ?
Socket::PassAccessRights::sendfd(fileno(SOCKET), fileno(FILE_DESCRIPTOR));
On the other end you'd want to receive like:$file_descriptor = Socket::PassAccessRights::recvfd(fileno(SOCKET));
This unlikely to work on any system not purporting POSIX compliance. According to the author of the module, the socket passing code in Linux and FreeBSD is buggy, so use this module only when necessary.
|
|---|