Implement FD passing in Cap'n Proto.
An endpoint (subclass of `Capability::Server`) may override `kj::Maybe<int> getFd()` to expose an underlying file descriptor. A remote client may use `Capability::Client::getFd()` on the endpoint's capability to get that FD. The client and server must explicitly opt into FD passing by passing a max-FDs-per-message limit to TwoPartyVatNetwork and using Unix sockets as the transport. Nothing other than that is needed.
Showing
This diff is collapsed.
Please
register
or
sign in
to comment