beacon

package
v0.10.8 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2014 License: GPL-3.0 Imports: 4 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 {
	// contains filtered or unexported fields
}

func NewBroadcast

func NewBroadcast(port int) (*Broadcast, 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 {
	Send(data []byte)
	Recv() ([]byte, net.Addr)
}

type Multicast

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

func NewMulticast

func NewMulticast(addr string) (*Multicast, error)

func (*Multicast) Recv

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

func (*Multicast) Send

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

Jump to

Keyboard shortcuts

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