stream

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OPEN   uint32 = 0
	CLOSED uint32 = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SatelliteStream

type SatelliteStream interface {
	Send(payload []byte) error

	io.Closer
}

func OpenSatelliteStream

func OpenSatelliteStream(satelliteId string, recvChan chan []byte) (SatelliteStream, error)

OpenSatelliteStream opens a stream to a satellite over the StellarStation API.

type UDPProxy

type UDPProxy interface {
	io.Closer
}

func StartUDPProxy

func StartUDPProxy(recvAddr string, sendAddr string, satelliteId string) (UDPProxy, error)

StartUDPProxy creates a UDPProxy that listens for packets to send to the satellite and send back received packets.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL