Documentation
¶
Index ¶
- type Conndeprecated
- func (c *Conn) Close() error
- func (c *Conn) DestAddr() *net.UDPAddr
- func (c *Conn) EnableTimeout(enabled bool)
- func (c *Conn) Listen(portMin, portMax int, listenAddr string) error
- func (c *Conn) ListenAndServe(portMin, portMax int, listenAddr string) error
- func (c *Conn) LocalAddr() *net.UDPAddr
- func (c *Conn) OnRTP(h mrtp.Handler)
- func (c *Conn) ReadRTP() (*rtp.Packet, *net.UDPAddr, error)
- func (c *Conn) Received() <-chan struct{}
- func (c *Conn) SetDestAddr(addr *net.UDPAddr)
- func (c *Conn) String() string
- func (c *Conn) WriteRTP(h *rtp.Header, payload []byte) (int, error)
- type ConnConfig
- type UDPConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn
deprecated
type Conn struct {
// contains filtered or unexported fields
}
Deprecated: use MediaPort instead
func NewConn ¶
func NewConn(conf *ConnConfig) *Conn
func NewConnWith ¶
func NewConnWith(conn UDPConn, conf *ConnConfig) *Conn
func (*Conn) EnableTimeout ¶
func (*Conn) ListenAndServe ¶
func (*Conn) Received ¶
func (c *Conn) Received() <-chan struct{}
Received chan is closed once Conn receives at least one RTP packet.
func (*Conn) SetDestAddr ¶
type ConnConfig ¶
Click to show internal directories.
Click to hide internal directories.