multicast

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MaxDatagramSize = 8192

Variables

This section is empty.

Functions

This section is empty.

Types

type Socket

type Socket struct {
	net.PacketConn
}

func Bind

func Bind(addr *net.UDPAddr) (*Socket, error)

func (Socket) Recv

func (sock Socket) Recv(ctx context.Context) ([]byte, net.Addr, error)

func (Socket) Send

func (sock Socket) Send(ctx context.Context, message []byte) error

Jump to

Keyboard shortcuts

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