gstnet

package
v0.2.27 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: LGPL-2.1 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetAddressMeta

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

NetAddressMeta can be used to store a network address in a GstBuffer so that it network elements can track the to and from address of the buffer.

func AddNetAddressMeta

func AddNetAddressMeta(buffer *gst.Buffer, address string, port int) *NetAddressMeta

AddNetAddressMeta attaches the given address to a NetAddressMeta on the buffer.

func GetNetAddressMeta

func GetNetAddressMeta(buffer *gst.Buffer) *NetAddressMeta

GetNetAddressMeta retrieves the NetAddressMeta from the given buffer.

func (*NetAddressMeta) Addr

func (n *NetAddressMeta) Addr() string

Addr returns the address included in the meta.

func (*NetAddressMeta) Meta

func (n *NetAddressMeta) Meta() *gst.Meta

Meta returns the underlying gst.Meta instance.

func (*NetAddressMeta) Port

func (n *NetAddressMeta) Port() int

Port returns the port included in the meta.

Jump to

Keyboard shortcuts

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