serverplain

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parent

type Parent interface {
	Log(logger.Level, string, ...interface{})
}

Parent is implemented by program.

type Server

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

Server is a TCP/RTSP listener.

func New

func New(port int,
	readTimeout time.Duration,
	writeTimeout time.Duration,
	readBufferCount uint64,
	udpRTPListener *gortsplib.ServerUDPListener,
	udpRTCPListener *gortsplib.ServerUDPListener,
	parent Parent) (*Server, error)

New allocates a Server.

func (*Server) Accept

func (s *Server) Accept() chan *gortsplib.ServerConn

Accept returns a channel to accept incoming connections.

func (*Server) Close

func (s *Server) Close()

Close closes a Server.

Jump to

Keyboard shortcuts

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