ssdp

package
v0.0.0-...-bf4a537 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2018 License: BSD-3-Clause Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AddrString = "239.255.255.250:1900"
)

Variables

View Source
var NetAddr = &net.UDPAddr{IP: net.IPv4(239, 255, 255, 250), Port: 1900}

Functions

This section is empty.

Types

type Advertiser

type Advertiser struct {
	Config
	// contains filtered or unexported fields
}

func NewAdvertiser

func NewAdvertiser(c Config, rp func() int, l logging.Logger) *Advertiser

func (*Advertiser) Serve

func (a *Advertiser) Serve()

func (*Advertiser) Stop

func (a *Advertiser) Stop()

func (*Advertiser) String

func (a *Advertiser) String() string

type Config

type Config struct {
	Interfaces     func() ([]net.Interface, error)
	Server         string
	Services       []string
	Devices        []string
	Location       func(net.IP) string
	UUID           string
	NotifyInterval time.Duration
	BootID         int32
	ConfigID       int32
}

type Responder

type Responder struct {
	Config

	logging.Logger

	sync.WaitGroup
	// contains filtered or unexported fields
}

func NewResponder

func NewResponder(c Config, l logging.Logger) *Responder

func (*Responder) Port

func (r *Responder) Port() int

func (*Responder) Serve

func (r *Responder) Serve()

func (*Responder) Stop

func (r *Responder) Stop()

func (*Responder) String

func (r *Responder) String() string

type Service

type Service suture.Service

func New

func New(c Config, l logging.Logger) Service

Jump to

Keyboard shortcuts

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