Broadcast-server - A simple Go server that broadcasts any data/stream

broadcast

A simple Go server that broadcasts any data/stream

usage

data

You can POST data.

curl -X POST --data-binary "@111.png" localhost:9222/test.png

You can even post movies and such which will stream to multiple people:

streaming

You can POST a stream to the server. For example, you can curl a local stream and then POST it:

curl http://<someurl>/radio.mp3 | curl -k -H "Transfer-Encoding: chunked" -X POST -T -  'localhost:9222/test.mp3?stream=true'

This stream is now accessible at localhost:9222/test.mp3. The ?stream=true flag is important to tell the server to start reading bytes right awawy, even if there is no listener. it has the benefit of immediately sending data to all listeners so that you can have multiple connections on that will all receive the data.

Similar Resources

Stream Camera based on TCP

Stream Camera based on TCP

streamera Term Project of Computer Networking streamera is a Stream Camera based on TCP, which contains client mode and server mode. Features Client M

Nov 11, 2022

Stream processing stuff for Go

GoStream Type safe Stream processing library inspired in the Java Streams API. Table of contents Requirements Usage examples Limitations Performance C

Dec 26, 2022

Reflex stream client for redis streams

rredis A reflex stream client for a redis streams using the radix client implementation. It provides an API for inserting data into a stream and for c

Oct 5, 2021

Totem - A Go library that can turn a single gRPC stream into bidirectional unary gRPC servers

Totem is a Go library that can turn a single gRPC stream into bidirectional unar

Jan 6, 2023

Reads JSON object (stream) from file/stdin and routes it/them to GCP Pub/Sub topics.

json2pubsub Publish JSON object (stream) into GCP Pub/Sub topic based on a field value. Usage: json2pubsub --project=STRING mapping ... Reads JSON

Nov 3, 2022

A go module supply Java-Like generic stream programming (while do type check at runtime)

gostream A go module supplying Java-Like generic stream programming (while do type check at runtime) Using Get a Stream To get a Stream, using SliceSt

Jan 16, 2022

Library for directly interacting and controlling an Elgato Stream Deck on Linux.

Stream Deck Library for directly interacting and controlling an Elgato Stream Deck on Linux. This library is designed to take exclusive control over a

Dec 17, 2022

Rabbitio - Rabbit stream cipher package RFC 4503 for Go

rabbitio rabbitio is a rabbit stream cipher packge based on RFC 4503 for golang

Dec 14, 2022

Sstreamcry - Shadowsocks stream bomb

ShadowStreamCry A Shadowsocks stream bomb. Credits DuckSoft Qv2ray/rc4md5cry v2f

Feb 24, 2022
Comments
  • How to use cvlc instead of ffmpeg?

    How to use cvlc instead of ffmpeg?

    First, thx for the amazing tool!

    • 1.My current use with ffmpeg: (this works)
    ffmpeg -y -nostdin -f pulse -i default  -f mp3 - | \
        curl -s -k -H "Transfer-Encoding: chunked" -X POST -T - \
        "http://localhost:9222/pulse.mp3?stream=true&advertise=true"
    
    • 2.And i want to try vlc, just like send to rtp:

    cvlc t2.mp3 ':sout=#transcode{acodec=mp2,ab=128,channels=2}:duplicate{dst=rtp{mux=ts,dst=127.0.0.1,port=1234}}'

    how could we use cvlc to send stream to broadcast-server?

  • Prevent removing arbitrary files from the filesystem

    Prevent removing arbitrary files from the filesystem

    Before this change you could do:

    touch killme.txt # in base of project, outside of archive curl -v 'http://localhost:9222/archived/%2E%2E/killme.txt?remove=true'

    ... and the killme.txt file is GONE! Like magic.

  • How to use cvlc instead of ffmpeg?

    How to use cvlc instead of ffmpeg?

    First, thx for the amazing tool!

    • 1.My current use with ffmpeg: (this works)
    ffmpeg -y -nostdin -f pulse -i default  -f mp3 - | \
        curl -s -k -H "Transfer-Encoding: chunked" -X POST -T - \
        "http://localhost:9222/pulse.mp3?stream=true&advertise=true"
    
    • 2.And i want to try vlc, just like send to rtp:

    cvlc t2.mp3 ':sout=#transcode{acodec=mp2,ab=128,channels=2}:duplicate{dst=rtp{mux=ts,dst=127.0.0.1,port=1234}}'

    how could we use cvlc to send stream to broadcast-server?

Send email and SMS broadcasts to your contacts. SMS are sent via your Android phone connected to your PC.

Polysender Send email and SMS broadcasts to your contacts. Polysender is a desktop application, so it does not require a complicated server setup. Ema

Aug 11, 2022
Project helps to identify the network, broadcast address and no of possible hosts

network_identifier Project helps to identify the network, broadcast address and no of possible hosts for Ipv4 address To use it directly as a go file

Dec 3, 2021
Go-weatherflow - WeatherFlow Tempest UDP broadcast receiver in golang

go-weatherflow $ go build $ ./go-weatherflow {"serial_number":"ST-00055227","typ

Jan 27, 2022
V3IO Frames ("Frames") is a Golang based remote data frames access (over gRPC or HTTP stream)

V3IO Frames ("Frames") is a multi-model open-source data-access library that provides a unified high-performance DataFrame API for working with different types of data sources (backends). The library was developed by Iguazio to simplify working with data in the Iguazio Data Science Platform ("the platform"), but it can be extended to support additional backend types.

Oct 1, 2022
Reads MAWS formatted data and converts it into JSON output stream.

maws2json Usage examples Over serial line (stdin pipe) Lets assume that Vaisala weather station is connected via RS232 to USB serial dongle in /dev/tt

Feb 6, 2022
Moviefetch: a simple program to search and download for movies from websites like 1337x and then stream them

MovieFetch Disclaimer I am NOT responisble for any legal issues or other you enc

Dec 2, 2022
UDP Transport: compress, encrypt and send any data reliably over unreliable UDP connections

udpt UDP Transport Compresses, encrypts and transfers data between a sender and receiver using UDP protocol. Features and Design Aims: Avoid the overh

Nov 5, 2022
A library to simplify writing applications using TCP sockets to stream protobuff messages

BuffStreams Streaming Protocol Buffers messages over TCP in Golang What is BuffStreams? BuffStreams is a set of abstraction over TCPConns for streamin

Dec 13, 2022
A toy project to stream from a Remarkable2

goMarkableStream I use this toy project to stream my remarkable 2 (firmware 2.5) on my laptop using the local wifi. video/demo here Quick start You ne

Dec 31, 2022
A lightweight stream processing library for Go
A lightweight stream processing library for Go

go-streams A lightweight stream processing library for Go. go-streams provides a simple and concise DSL to build data pipelines. Wiki In computing, a

Dec 31, 2022