mdns

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceHAP = "_hap._tcp.local." // HomeKit Accessory Protocol

Variables

This section is empty.

Functions

func Discovery

func Discovery(service string, onentry func(*ServiceEntry) bool) error

func GetPTR

func GetPTR(msg *dns.Msg) string

Types

type ServiceEntry

type ServiceEntry struct {
	Name string
	IP   net.IP
	Port uint16
	Info map[string]string
}

func NewServiceEntry

func NewServiceEntry(msg *dns.Msg) *ServiceEntry

func (*ServiceEntry) Addr

func (e *ServiceEntry) Addr() string

func (*ServiceEntry) Complete

func (e *ServiceEntry) Complete() bool

Jump to

Keyboard shortcuts

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