multicast

package
v4.16.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package multicast contains multicast connections.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterfaceForSource deprecated

func InterfaceForSource(ip net.IP) (*net.Interface, error)

InterfaceForSource returns a multicast-capable interface that can communicate with given IP.

Deprecated: not used anymore.

Types

type Conn

type Conn interface {
	net.PacketConn
	SetReadBuffer(int) error
	SyscallConn() (syscall.RawConn, error)
}

Conn is a Multicast connection.

func NewMultiConn

func NewMultiConn(
	address string,
	readOnly bool,
	_ func(network, address string) (net.PacketConn, error),
) (Conn, error)

NewMultiConn allocates a multiConn.

func NewSingleConn

func NewSingleConn(
	intf *net.Interface,
	address string,
	_ func(network, address string) (net.PacketConn, error),
) (Conn, error)

NewSingleConn allocates a singleConn.

Jump to

Keyboard shortcuts

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