dumbpipe icon indicating copy to clipboard operation
dumbpipe copied to clipboard

Add broadcast mode

Open Frando opened this issue 2 years ago • 2 comments

...so that a node can accept any number of connections, and will pipe STDIN live to all incoming connections.

Maybe this mode would not support receiving data on the node started with dumbpipe listen because this would need business logic on what to do with the incoming data.

So e.g. ffmpeg ... | dumbpipe broadcast --> print ticket And then any number of nodes can connect and view/listen to the live broadcast.

Frando avatar Dec 02 '23 14:12 Frando

Not quite sure how this would work. So you want to listen from stdin from the moment of connection (currently it will buffer from the start), and also mix all the stuff that is sent to you to stdout?

rklaehn avatar Dec 04 '23 09:12 rklaehn

why not just take in the output of dumbpipe connect and pipe it into a binary that does broadcasting?

e.g.

# sender
ffmpeg ... | dumbpipe listen | wl-copy

# receiver
export nodeId=$(wl-paste)
dumbpipe connect $nodeId | nc -u -b 255.255.255.255 12101

adminy avatar Apr 27 '25 16:04 adminy