beacon

package
v0.9.16 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2014 License: MIT 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 added in v0.9.6

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

func NewBroadcast added in v0.9.6

func NewBroadcast(port int) (*Broadcast, error)

func (*Broadcast) Recv added in v0.9.6

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

func (*Broadcast) Send added in v0.9.6

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

type Interface added in v0.9.6

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

type Multicast added in v0.9.6

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

func NewMulticast added in v0.9.6

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

func (*Multicast) Recv added in v0.9.6

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

func (*Multicast) Send added in v0.9.6

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

Jump to

Keyboard shortcuts

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