mdns

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LANDiscover

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

LANDiscover responsible for finding the related services registered LAN nodes.

func NewLANDiscover

func NewLANDiscover(protocol mDNSProtocol, port int) *LANDiscover

NewLANDiscover create a new LAN node discover.

func (*LANDiscover) Stop

func (ld *LANDiscover) Stop()

Stop stop LAN discover.

func (*LANDiscover) Subscribe

func (ld *LANDiscover) Subscribe() (*event.Subscription, error)

Subscribe used to subscribe for LANPeerEvent.

type LANPeerEvent

type LANPeerEvent struct {
	IP   []net.IP
	Port int
}

LANPeerEvent represent LAN peer ip and port.

type Protocol

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

Protocol decoration ZeroConf,which is a pure Golang library that employs Multicast DNS-SD.

func NewProtocol

func NewProtocol() *Protocol

NewProtocol create a specific Protocol.

Jump to

Keyboard shortcuts

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