mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-04 19:20:38 +00:00
Lots of boilerplate for now on, will work on upstreaming that in the tool properly if needed later. Signed-off-by: Thomas Gazagnaire <thomas@gazagnaire.org>
fdd -- file-descriptor daemon
Fdd allows to share socketpair over a unix domain socket. The typical flow is
as follows:
-
Start the fdd daemon:
$ fdd init -
Create a bunch of socketpair shares:
$ fdd share /tmp/foo $ fdd share /tmp/bar
This will create /tmp/foo and /tmp/bar that process clients can connect too.
Once connected, they can use recvmsg1 to receive each side of the
socketpair. If two different process do this, they then have a channel to talk
to each other.