fdpass

Version, currently main branch1 version
  • main branchlatestOct 11, 2024

github.com/84codes/fdpass.cr

No description declared in shard.yml.

1 stars
1 dependent
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  fdpass:
    github: 84codes/fdpass.cr
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
1.0.0
License
MIT
Author
Carl Hörberg <carl@84codes.com>

Dependencies

This version declares no dependencies.

README

# FDPass

Pass a file descriptor over a UNIX socket.

## Installation

1. Add the dependency to your `shard.yml`:

   ```yaml
   dependencies:
     fdpass:
       github: 84codes/fdpass.cr
   ```

2. Run `shards install`

## Usage

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