beacon

package
v0.14.26-rc.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2017 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package beacon implements an UDP broadcast beacon

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broadcast

type Broadcast struct {
	*suture.Supervisor
	// contains filtered or unexported fields
}

func NewBroadcast

func NewBroadcast(port int) *Broadcast

func (*Broadcast) Error added in v0.12.0

func (b *Broadcast) Error() error

func (*Broadcast) Recv

func (b *Broadcast) Recv() ([]byte, net.Addr)

func (*Broadcast) Send

func (b *Broadcast) Send(data []byte)

type Interface

type Interface interface {
	suture.Service
	Send(data []byte)
	Recv() ([]byte, net.Addr)
	Error() error
}

type Multicast

type Multicast struct {
	*suture.Supervisor
	// contains filtered or unexported fields
}

func NewMulticast

func NewMulticast(addr string) *Multicast

func (*Multicast) Error added in v0.12.0

func (m *Multicast) Error() error

func (*Multicast) Recv

func (m *Multicast) Recv() ([]byte, net.Addr)

func (*Multicast) Send

func (m *Multicast) Send(data []byte)

Jump to

Keyboard shortcuts

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