qrt

package module
v0.0.0-...-953ecce Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: MIT Imports: 8 Imported by: 0

README

QRT

QRT is an experimental implementation of QUIC RTP Tunneling. Currently it provides an API to send RTP packets over QUIC Datagrams. It is planned to implement the QUIC RTP Tunneling Draft.

Documentation

Overview

Package qrt implements QUIC RTP Tunneling (https://tools.ietf.org/html/draft-hurst-quic-rtp-tunnelling-01)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadFlow

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

func (*ReadFlow) Read

func (r *ReadFlow) Read(buf []byte) (n int, err error)

func (*ReadFlow) ReadRTP

func (r *ReadFlow) ReadRTP(buf []byte) (int, *rtp.Header, error)

type Session

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

func NewSession

func NewSession(sess quic.Session, opts ...SessionOption) (*Session, error)

func (*Session) AcceptFlow

func (s *Session) AcceptFlow(flowID uint64) (*ReadFlow, error)

func (*Session) Close

func (s *Session) Close() error

func (*Session) OpenWriteFlow

func (s *Session) OpenWriteFlow(flowID uint64) (*WriteFlow, error)

type SessionOption

type SessionOption func(r *Session) error

type WriteFlow

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

func (*WriteFlow) Write

func (w *WriteFlow) Write(b []byte) (n int, err error)

func (*WriteFlow) WriteRTP

func (w *WriteFlow) WriteRTP(header *rtp.Header, payload []byte) (int, error)

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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