#unix-socket #wrapper #sockets #connection #udp #tcp #beeper

buplib

A small beeper / buzzer socket wrapper library

7 stable releases

3.3.0 Mar 25, 2024
3.2.1 Mar 24, 2024
2.0.1 Mar 24, 2024
1.0.0 Mar 23, 2024

#1793 in Network programming

Download history 220/week @ 2024-03-18 137/week @ 2024-03-25 96/week @ 2024-04-01 1/week @ 2024-04-08

284 downloads per month

Unlicense

14KB
370 lines

🔘 BUP

A small beeper / buzzer socket wrapper library

Introduction

BUP is a wrapper for socket-like structs (Unix, UDP, TCP...) that beeps at every connection using a provided Source to generate the samples from using the result of the connection (a stream, some bytes...).

Example

This crate comes with an example and some comments. It creates a BUP with an infinite sinewave source and sends increasing values to it via a Unix socket.

To run it, use cargo :

cargo run --example sine

Q&A

Is BUP an acronym?

Almost.

Rodio says "NoDevice"

You probably dropped your OutputStream.

Is this the future?

Not yet.

Dependencies

~0.7–32MB
~442K SLoC