udp

package
v0.0.0-...-a564318 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultUDPPort         int = 50210
	DefaultAdvertisePeriod     = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Advertiser

type Advertiser interface {
	Start() error
	Stop() error
	Advertise() error
	AdvertiseEvery(seconds int)
}

func NewAdvertiser

func NewAdvertiser(ip net.IP, uuid, name, port string) (Advertiser, error)

type Broadcaster

type Broadcaster struct {
	// contains filtered or unexported fields
}

func NewBroadCaster

func NewBroadCaster(localIp net.IP, remotePort int, message []byte) (broadcaster *Broadcaster, err error)

func (*Broadcaster) Broadcast

func (b *Broadcaster) Broadcast() (err error)

Jump to

Keyboard shortcuts

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