network

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferTransportGenerator

type BufferTransportGenerator func(uint32, uint8) chan<- *rtp.Packet

BufferTransportGenerator generates a new channel for the associated SSRC This channel is used to send RTP packets to users of pion-WebRTC

type ICENotifier

type ICENotifier func(*Port)

ICENotifier notifies the RTCPeerConnection if ICE state has changed for this port

type Port

type Port struct {
	ListeningAddr *stun.TransportAddr
	ICEState      ice.ConnectionState
	// contains filtered or unexported fields
}

Port represents a UDP listener that handles incoming/outgoing traffic

func NewPort

func NewPort(address string, remoteKey []byte, tlscfg *dtls.TLSCfg, b BufferTransportGenerator, i ICENotifier) (*Port, error)

NewPort creates a new Port

func (*Port) Close

func (p *Port) Close() error

Close closes the listening port and cleans up any state

func (*Port) Send

func (p *Port) Send(packet *rtp.Packet)

Send sends a *rtp.Packet if we have a connected peer

Jump to

Keyboard shortcuts

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