how to do large-ish IPC transfers
Alexander Amelkin
a.amelkin at yadro.com
Fri Sep 13 17:42:03 AEST 2019
12.09.2019 16:24, Brad Bishop wrote:
>
>> What is a 'file descriptor' you're referring to here? The Linux file descriptor
>> (the integer you get from open()) is process-specific and doesn't keep its
>> meaning in another process' context.
>
> On Linux you can pass file descriptors (the ones returned by open) over unix
> sockets. The implementation of the ‘h’ DBus type relies on that.
Oh, great! Didn't know about that. Thanks.
Anyway, I think I'd just use message queues or sockets (directly). What's the
profit of using a file whose descriptor is sent over a socket instead of just
using the socket for communication?
With best regards,
Alexander Amelkin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20190913/bc20782c/attachment.sig>
More information about the openbmc
mailing list