mdns

package
v0.0.0-...-9756ca3 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIpv4Into

func GetIpv4Into() netip.Addr

func GetIpv6Into

func GetIpv6Into() netip.Addr

Types

type BroadcastSendDelegate

type BroadcastSendDelegate interface {
	Accept(info EndpointInfo) *udp_endpoint.UDPEndpoint
}

type DnsServer

type DnsServer interface {
	Shutdown()
	SetDelegate()
	ShutdownEndpoint(info EndpointInfo)
	StartServer(port uint16)
	DirectSend(packet *system.PacketBufferHandle, address IP.Address, port int, id Interface.Id) error
	BroadcastSend(packet *system.PacketBufferHandle, port int, id Interface.Id, addr IP.Address) error
}

type EndpointInfo

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

type InterfaceTypeFilterDelegate

type InterfaceTypeFilterDelegate struct {
	BroadcastSendDelegate
	// contains filtered or unexported fields
}

func (InterfaceTypeFilterDelegate) Accept

type ListenSocketPickerDelegate

type ListenSocketPickerDelegate struct {
	BroadcastSendDelegate
}

type QueryDelegate

type QueryDelegate interface {
	OnQuery(r dns.ResponseWriter, data *dnssd.QueryData)
}

type Server

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

func (*Server) Broadcast

func (m *Server) Broadcast(msg *dns.Msg) error

func (Server) Init

func (m Server) Init() *Server

func (*Server) ServeDNS

func (m *Server) ServeDNS(w dns.ResponseWriter, r *dns.Msg)

func (*Server) SetQueryDelegate

func (m *Server) SetQueryDelegate(delegate QueryDelegate)

func (*Server) Shutdown

func (m *Server) Shutdown()

func (*Server) StartServer

func (m *Server) StartServer(adders []netip.Addr, port uint16) error

Jump to

Keyboard shortcuts

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