mdns

package
v0.0.0-...-9913e2f Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mdns

type Mdns struct {

	// Query is called for each Question message received.
	Query func(*Mdns, *net.UDPAddr, *dns.Question)

	// Response is called for each Answer message received.
	Response func(*Mdns, *net.UDPAddr, dns.RR)
}

Mdns describes a mdns listener.

func (*Mdns) Listen

func (m *Mdns) Listen() error

Listen listens for packets on the default IPv4 mulitcast address. Listen blocks until an error is returned from the underlying socket.

func (*Mdns) Respond

func (m *Mdns) Respond(answers ...dns.RR) error

func (*Mdns) Send

func (m *Mdns) Send(questions ...dns.Question) error

Jump to

Keyboard shortcuts

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