Files
linuxkit/projects/miragesdk/src/fdd
Thomas Gazagnaire 5525937c10 sdk: add fdd exec to map socketpair shares to local fds
To enable this:

```
$ fdd init &
$ fdd share /tmp/foo

$ fdd exec -m /tmp/foo:1:2 -- echo hello world!

$ fdd exec -m /tmp/foo:0 -- cat
hello world!
```

Signed-off-by: Thomas Gazagnaire <thomas@gazagnaire.org>
2017-06-30 16:11:41 +02:00
..

fdd -- file-descriptor daemon

Fdd allows to share socketpair over a unix domain socket. The typical flow is as follows:

  1. Start the fdd daemon:

    $ fdd init
    
  2. 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.