rtp

package
v1.1.7-0...-d08fa44 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPortMin = 30000
	DefaultPortMax = 65530
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RtpUDPStream

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

func NewRtpUDPStream

func NewRtpUDPStream(bind string, portMin, portMax int, callback func(pkt []byte, raddr net.Addr)) *RtpUDPStream

func (*RtpUDPStream) Close

func (r *RtpUDPStream) Close()

func (*RtpUDPStream) LocalAddr

func (r *RtpUDPStream) LocalAddr() *net.UDPAddr

func (*RtpUDPStream) Log

func (r *RtpUDPStream) Log() log.Logger

func (*RtpUDPStream) Read

func (r *RtpUDPStream) Read()

func (*RtpUDPStream) RemoteAddr

func (r *RtpUDPStream) RemoteAddr() *net.UDPAddr

func (*RtpUDPStream) Send

func (r *RtpUDPStream) Send(pkt []byte, raddr *net.UDPAddr) (int, error)

Jump to

Keyboard shortcuts

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