FDPass
Pass a file descriptor over a UNIX socket.
Installation
-
Add the dependency to your
shard.yml
:dependencies: fdpass: github: 84codes/fdpass.cr
-
Run
shards install
Usage
require "fdpass"
FDPass.send_fd(unix_socket.fd, socket_to_pass.fd)