Documentation
¶
Index ¶
- Constants
- type Connection
- type QUICGoConnection
- func (c *QUICGoConnection) AcceptUniStream(ctx context.Context) (ReceiveStream, error)
- func (c *QUICGoConnection) CloseWithError(code uint64, reason string) error
- func (c *QUICGoConnection) OpenUniStreamSync(ctx context.Context) (SendStream, error)
- func (c *QUICGoConnection) ReceiveDatagram(ctx context.Context) ([]byte, error)
- func (c *QUICGoConnection) SendDatagram(payload []byte) error
- type RTPSendStream
- type ReceiveFlow
- type ReceiveStream
- type SendFlow
- type SendStream
- type Session
Constants ¶
View Source
const ( ErrRoQNoError = iota ErrRoQGeneralError ErrRoQInternalError ErrRoQPacketError ErrRoQStreamCreationError ErrRoQFrameCancelled ErrRoQUnknownFlowID ErrRoQExpectationUnmet )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type QUICGoConnection ¶
type QUICGoConnection struct {
// contains filtered or unexported fields
}
func NewQUICGoConnection ¶
func NewQUICGoConnection(conn quic.Connection) *QUICGoConnection
func (*QUICGoConnection) AcceptUniStream ¶
func (c *QUICGoConnection) AcceptUniStream(ctx context.Context) (ReceiveStream, error)
func (*QUICGoConnection) CloseWithError ¶
func (c *QUICGoConnection) CloseWithError(code uint64, reason string) error
func (*QUICGoConnection) OpenUniStreamSync ¶
func (c *QUICGoConnection) OpenUniStreamSync(ctx context.Context) (SendStream, error)
func (*QUICGoConnection) ReceiveDatagram ¶
func (c *QUICGoConnection) ReceiveDatagram(ctx context.Context) ([]byte, error)
func (*QUICGoConnection) SendDatagram ¶
func (c *QUICGoConnection) SendDatagram(payload []byte) error
type RTPSendStream ¶
type RTPSendStream struct {
// contains filtered or unexported fields
}
func (*RTPSendStream) CancelStream ¶
func (s *RTPSendStream) CancelStream(errorCode uint64)
CancelStream closes the stream with the given error code.
func (*RTPSendStream) Close ¶
func (s *RTPSendStream) Close() error
Close closes the stream gracefully.
func (*RTPSendStream) WriteRTPBytes ¶
func (s *RTPSendStream) WriteRTPBytes(packet []byte) (int, error)
WriteRTPBytes sends an RTP or RTCP packet on the stream.
type ReceiveFlow ¶
type ReceiveFlow struct {
// contains filtered or unexported fields
}
func (*ReceiveFlow) Close ¶
func (f *ReceiveFlow) Close() error
func (*ReceiveFlow) ID ¶
func (f *ReceiveFlow) ID() uint64
func (*ReceiveFlow) SetReadDeadline ¶
func (f *ReceiveFlow) SetReadDeadline(t time.Time) error
type SendFlow ¶
type SendFlow struct {
// contains filtered or unexported fields
}
func (*SendFlow) NewSendStream ¶
func (f *SendFlow) NewSendStream(ctx context.Context) (*RTPSendStream, error)
NewSendStream creates a new Stream for sending outgoing RTP and RTCP packets over a QUIC stream.
func (*SendFlow) WriteRTPBytes ¶
WriteRTP sends an RTP or RTCP packet as a QUIC Datagram.
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func NewSession ¶
func NewSession(conn Connection, acceptDatagrams bool) (*Session, error)
func (*Session) NewReceiveFlow ¶
func (s *Session) NewReceiveFlow(id uint64) (*ReceiveFlow, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.