srtp

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GuessProfile

func GuessProfile(masterKey []byte) srtp.ProtectionProfile

Types

type Server

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

Server using same UDP port for SRTP and for SRTCP as the iPhone does this is not really necessary but anyway

func (*Server) AddSession

func (s *Server) AddSession(session *Session)

func (*Server) Close

func (s *Server) Close() error

func (*Server) Port

func (s *Server) Port() uint16

func (*Server) RemoveSession

func (s *Server) RemoveSession(session *Session)

func (*Server) Serve

func (s *Server) Serve(conn net.PacketConn) error

type Session

type Session struct {
	LocalSSRC  uint32 // outgoing SSRC
	RemoteSSRC uint32 // incoming SSRC

	Write func(b []byte) (int, error)
	Track *core.Receiver
	Recv  uint32
	// contains filtered or unexported fields
}

func (*Session) HandleRTCP

func (s *Session) HandleRTCP(data []byte) (err error)

func (*Session) HandleRTP

func (s *Session) HandleRTP(data []byte) (err error)

func (*Session) KeepAlive

func (s *Session) KeepAlive() (err error)

func (*Session) SetKeys

func (s *Session) SetKeys(
	localKey, localSalt, remoteKey, remoteSalt []byte,
) (err error)

Jump to

Keyboard shortcuts

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