package mdns

import "github.com/libp2p/go-libp2p/p2p/discovery/mdns"

Index

Constants

const (
	ServiceName = "_p2p._udp"
)

Functions

func NewMdnsService

func NewMdnsService(host host.Host, serviceName string, notifee Notifee) *mdnsService

Types

type Notifee

type Notifee interface {
	HandlePeerFound(peer.AddrInfo)
}

type Service

type Service interface {
	Start() error
	io.Closer
}

Source Files

mdns.go

Version
v0.41.1 (latest)
Published
Mar 24, 2025
Platform
linux/amd64
Imports
12 packages
Last checked
3 weeks ago

Tools for package owners.