multicast

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: LGPL-3.0 Imports: 23 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetMulticastInterfacesRequest

type GetMulticastInterfacesRequest struct{}

type GetMulticastInterfacesResponse

type GetMulticastInterfacesResponse struct {
	Interfaces []MulticastInterfaceState `json:"multicast_interfaces"`
}

type GroupAddress

type GroupAddress string

type Multicast

type Multicast struct {
	phony.Inbox
	// contains filtered or unexported fields
}

Multicast represents the multicast advertisement and discovery mechanism used by Uqda to find peers on the same subnet. When a beacon is received on a configured multicast interface, Uqda will attempt to peer with that node automatically.

func New

func New(core *core.Core, log core.Logger, opts ...SetupOption) (*Multicast, error)

Start starts the multicast interface. This launches goroutines which will listen for multicast beacons from other hosts and will advertise multicast beacons out to the network.

func (*Multicast) AnnounceNow

func (m *Multicast) AnnounceNow()

func (*Multicast) Interfaces

func (m *Multicast) Interfaces() map[string]net.Interface

func (*Multicast) IsStarted

func (m *Multicast) IsStarted() bool

IsStarted returns true if the module has been started.

func (*Multicast) SetupAdminHandlers

func (m *Multicast) SetupAdminHandlers(a *admin.AdminSocket)

func (*Multicast) Stop

func (m *Multicast) Stop() error

Stop stops the multicast module.

type MulticastInterface

type MulticastInterface struct {
	Regex    *regexp.Regexp
	Beacon   bool
	Listen   bool
	Port     uint16
	Priority uint8
	Password string
}

type MulticastInterfaceState

type MulticastInterfaceState struct {
	Name     string `json:"name"`
	Address  string `json:"address"`
	Beacon   bool   `json:"beacon"`
	Listen   bool   `json:"listen"`
	Password bool   `json:"password"`
}

type SetupOption

type SetupOption interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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