tcp

package
v0.0.0-...-7e6c5de Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func (*Handler) SetRTPReader

func (h *Handler) SetRTPReader(r interceptor.RTPReader)

func (*Handler) WriteRTCP

func (h *Handler) WriteRTCP(pkts []rtcp.Packet, attributes interceptor.Attributes) (int, error)

type Sender

type Sender struct {
	*SenderConfig
	// contains filtered or unexported fields
}

func NewSender

func NewSender(r *interceptor.Registry, opts ...SenderOption) (*Sender, error)

func (*Sender) Connect

func (s *Sender) Connect(ctx context.Context) error

func (*Sender) NewMediaStream

func (s *Sender) NewMediaStream() interceptor.RTPWriter

type SenderConfig

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

type SenderOption

type SenderOption func(*SenderConfig) error

func RemoteAddress

func RemoteAddress(addr string) SenderOption

func SetTCPCongestionControlAlgorithm

func SetTCPCongestionControlAlgorithm(algorithm cc.Algorithm) SenderOption

type Server

type Server struct {
	*ServerConfig
	// contains filtered or unexported fields
}

func NewServer

func NewServer(opts ...ServerOption) (*Server, error)

func (*Server) OnNewHandler

func (s *Server) OnNewHandler(f func(*Handler))

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

type ServerConfig

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

type ServerOption

type ServerOption func(*ServerConfig) error

func LocalAddress

func LocalAddress(addr string) ServerOption

Jump to

Keyboard shortcuts

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