Documentation ¶
Index ¶
- Variables
- func Close()
- func DelRouter(id string)
- func Init(port int, ices []string, icePortStart, icePortEnd uint16, ...) error
- func MapRouter(fn func(id string, r *Router))
- type Router
- func (r *Router) AddPlugin(id string, i plugins.Plugin)
- func (r *Router) AddPub(id string, t transport.Transport) transport.Transport
- func (r *Router) AddSub(id string, t transport.Transport) transport.Transport
- func (r *Router) Alive() bool
- func (r *Router) Close()
- func (r *Router) DelPlugin(id string)
- func (r *Router) DelPlugins()
- func (r *Router) DelPub()
- func (r *Router) DelSub(id string)
- func (r *Router) DelSubs()
- func (r *Router) GetPlugin(id string) plugins.Plugin
- func (r *Router) GetPub() transport.Transport
- func (r *Router) GetSub(id string) transport.Transport
- func (r *Router) GetSubs() map[string]transport.Transport
- func (r *Router) HasNoneSub() bool
- func (r *Router) PushRTCP(pkt rtcp.Packet) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //CleanChannel return the dead pub's mid CleanChannel = make(chan string, maxCleanSize) )
Functions ¶
Types ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router is rtp router
Directories ¶
Path | Synopsis |
---|---|
deadline
Package deadline provides deadline timer used to implement net.Conn compatible connection
|
Package deadline provides deadline timer used to implement net.Conn compatible connection |
udp
Package udp provides a connection-oriented listener over a UDP PacketConn
|
Package udp provides a connection-oriented listener over a UDP PacketConn |
Click to show internal directories.
Click to hide internal directories.