ssdp

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: BSD-3-Clause Imports: 13 Imported by: 10

Documentation

Index

Constants

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

Variables

View Source
var NetAddr *net.UDPAddr

Functions

func ReadRequest

func ReadRequest(b *bufio.Reader) (req *http.Request, err error)

Types

type Server

type Server struct {
	Interface      net.Interface
	Server         string
	Services       []string
	Devices        []string
	IPFilter       func(net.IP) bool
	Location       func(net.IP) string
	UUID           string
	NotifyInterval time.Duration

	Logger log.Logger
	// contains filtered or unexported fields
}

func (*Server) Close

func (me *Server) Close()

func (*Server) Init

func (me *Server) Init() (err error)

func (*Server) Serve

func (me *Server) Serve() (err error)

Jump to

Keyboard shortcuts

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