Skip to content

Go library for receiving OutGauge packets

License

Notifications You must be signed in to change notification settings

Worty/outgaugelistener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OutGauge receiver in GO

Description:

Library for receiving OutGauge pakets from simulators like BeamNG.drive®

Also contains a test cli program which prints incoming packets in ./cli/main.go.

run it: go run main.go <listen ip> <listen udp port>

For information how setup the game checkout the Wiki

Usage:

go get github.com/worty/outgaugelistener

    import (
        "github.com/worty/outgaugelistener"
    )
    // listenaddr:= net.UDPAddr{.....}
    conn, err := outgaugelistener.Listen(&listenaddr)
    ...
    defer conn.Close()
    channel := conn.GetChannel()
    // recive data from channel
    ...