Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 314 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 314 Bytes

FDPass

Pass a file descriptor over a UNIX socket.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      fdpass:
        github: 84codes/fdpass.cr
  2. Run shards install

Usage

require "fdpass"
FDPass.send_fd(unix_socket.fd, socket_to_pass.fd)