Convert UDP Streams to Configurable HTTP Presentation
🚧
copy examples/main.go and Makefile to your project
make deps
make
package main
import (
"flag"
"fmt"
"log"
"os"
sv "github.com/yetkinozturk/streamview"
)
func main() {
flag.Parse()
log.SetFlags(0)
if len(os.Args) != 3 {
fmt.Println("Usage: ./streamview udpport httpport")
return
}
app := sv.NewStreamView(os.Args[1],os.Args[2])
log.Fatal(app.Start())
}
cd examples
examples/main.go
tests/push100K.go
nc -u localhost 7778
- Stats
- Configurable UDP Package Serializations
Almost every device supports UDP. Implementing complex protocols on devices is extremely expensive and difficult. With this kind of function as a service approach, external presentation layer can be used by this devices.
- Displaying sensor data on web or mobile devices.
- Displaying realtime data on web pages.