Versions in this module Expand all Collapse all v0 v0.2.1 Jun 13, 2024 Changes in this version + const ErrRoQExpectationUnmet + const ErrRoQFrameCancelled + const ErrRoQGeneralError + const ErrRoQInternalError + const ErrRoQNoError + const ErrRoQPacketError + const ErrRoQStreamCreationError + const ErrRoQUnknownFlowID + type Connection interface + AcceptUniStream func(context.Context) (ReceiveStream, error) + CloseWithError func(uint64, string) error + OpenUniStreamSync func(context.Context) (SendStream, error) + ReceiveDatagram func(context.Context) ([]byte, error) + SendDatagram func(payload []byte) error + type QUICGoConnection struct + func NewQUICGoConnection(conn quic.Connection) *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 struct + func (s *RTPSendStream) CancelStream(errorCode uint64) + func (s *RTPSendStream) Close() error + func (s *RTPSendStream) WriteRTPBytes(packet []byte) (int, error) + type ReceiveFlow struct + func (f *ReceiveFlow) Close() error + func (f *ReceiveFlow) ID() uint64 + func (f *ReceiveFlow) Read(buf []byte) (int, error) + func (f *ReceiveFlow) SetReadDeadline(t time.Time) error + type ReceiveStream interface + CancelRead func(uint64) + ID func() int64 + type SendFlow struct + func (f *SendFlow) Close() error + func (f *SendFlow) NewSendStream(ctx context.Context) (*RTPSendStream, error) + func (f *SendFlow) WriteRTPBytes(packet []byte) error + type SendStream interface + CancelWrite func(uint64) + type Session struct + func NewSession(conn Connection, acceptDatagrams bool) (*Session, error) + func (s *Session) Close() error + func (s *Session) NewReceiveFlow(id uint64) (*ReceiveFlow, error) + func (s *Session) NewSendFlow(id uint64) (*SendFlow, error)