srt

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package srt contains a SRT server.

Index

Constants

This section is empty.

Variables

View Source
var ErrConnNotFound = errors.New("connection not found")

ErrConnNotFound is returned when a connection is not found.

Functions

This section is empty.

Types

type Server

type Server struct {
	Address             string
	RTSPAddress         string
	ReadTimeout         conf.StringDuration
	WriteTimeout        conf.StringDuration
	UDPMaxPayloadSize   int
	RunOnConnect        string
	RunOnConnectRestart bool
	RunOnDisconnect     string
	ExternalCmdPool     *externalcmd.Pool
	PathManager         serverPathManager
	Parent              serverParent
	// contains filtered or unexported fields
}

Server is a SRT server.

func (*Server) APIConnsGet

func (s *Server) APIConnsGet(uuid uuid.UUID) (*defs.APISRTConn, error)

APIConnsGet is called by api.

func (*Server) APIConnsKick

func (s *Server) APIConnsKick(uuid uuid.UUID) error

APIConnsKick is called by api.

func (*Server) APIConnsList

func (s *Server) APIConnsList() (*defs.APISRTConnList, error)

APIConnsList is called by api.

func (*Server) Close

func (s *Server) Close()

Close closes the server.

func (*Server) Initialize

func (s *Server) Initialize() error

Initialize initializes the server.

func (*Server) Log

func (s *Server) Log(level logger.Level, format string, args ...interface{})

Log implements logger.Writer.

Jump to

Keyboard shortcuts

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