mdns

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MDNSServiceName = p2p_mdns.ServiceName
)

Variables

View Source
var DiscoveryTimeout = time.Second * 30

Functions

func DiscoveryHandler

func DiscoveryHandler(ctx context.Context, l *zap.Logger, h host.Host) p2p_mdns.Notifee

func GetMulticastInterfaces

func GetMulticastInterfaces(s *MdnsService) []net.Interface

func NewMdnsService

func NewMdnsService(logger *zap.Logger, host host.Host, serviceName string, notifee p2p_mdns.Notifee, ifaces []net.Interface) p2p_mdns.Service

Types

type MdnsService

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

func (*MdnsService) Close

func (s *MdnsService) Close() error

func (*MdnsService) Start

func (s *MdnsService) Start() error

Jump to

Keyboard shortcuts

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