add UDPReadBufferSize option (#857)

This commit is contained in:
Alessandro Ros
2025-08-11 10:49:54 +02:00
committed by GitHub
parent a560c2c24a
commit 7a5df14b2c
11 changed files with 110 additions and 12 deletions

View File

@@ -4,12 +4,14 @@ package multicast
import (
"fmt"
"net"
"syscall"
)
// Conn is a Multicast connection.
type Conn interface {
net.PacketConn
SetReadBuffer(int) error
SyscallConn() (syscall.RawConn, error)
}
// InterfaceForSource returns a multicast-capable interface that can communicate with given IP.