mdns

package
v0.0.0-...-113cdb9 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(v4 bool, v6 bool) (*Client, error)

NewClient creates a new mdns Client

func (*Client) Close

func (c *Client) Close() error

Close is used to cleanup the Client

func (*Client) ReceiveChan

func (c *Client) ReceiveChan() <-chan *dns.Msg

ReceiveChan returns receiveChan

func (*Client) SendMessage

func (c *Client) SendMessage(msg *dns.Msg) error

SendMessage sends mdns packet to local

func (*Client) StartReceiver

func (c *Client) StartReceiver()

StartReceiver starts receiver goroutines

Jump to

Keyboard shortcuts

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