Help us shape the future of Go! Take the 2026 Go Developer Survey

netutil

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeriveIPFromCIDR

func DeriveIPFromCIDR(cidr string, hostID uint32) (net.IP, error)

Types

type MulticastListener

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

MulticastListener is a simple multicast monitoring utility that allows joining multicast groups and recording per-group statistics.

func NewMulticastListener

func NewMulticastListener() *MulticastListener

func (*MulticastListener) GetStatistics

func (m *MulticastListener) GetStatistics(group net.IP) uint64

func (*MulticastListener) JoinGroup

func (m *MulticastListener) JoinGroup(ctx context.Context, group net.IP, port string, ifName string) error

func (*MulticastListener) Stop

func (m *MulticastListener) Stop()

Jump to

Keyboard shortcuts

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