Documentation ¶
Index ¶
- Variables
- func WaitDC(dc *webrtc.DataChannel, timeout time.Duration) (err error)
- type Hub
- type Inbound
- func (*Inbound) ClearSrc()
- func (*Inbound) DstIP() netip.Addr
- func (ep *Inbound) DstToBytes() []byte
- func (ep *Inbound) DstToString() string
- func (ep *Inbound) ExtractInitiator() (initiator []byte, ierr error)
- func (ep *Inbound) HandleConnect(buf []byte) (ierr error)
- func (ep *Inbound) Message() (ch <-chan []byte)
- func (ep *Inbound) Send(buf []byte) (err error)
- func (*Inbound) SrcIP() netip.Addr
- func (*Inbound) SrcToString() string
- type Outbound
- func (*Outbound) ClearSrc()
- func (ep *Outbound) Close() (err error)
- func (ep *Outbound) Connect(buf []byte) (ierr error)
- func (*Outbound) DstIP() netip.Addr
- func (ep *Outbound) DstToBytes() []byte
- func (ep *Outbound) DstToString() string
- func (ep *Outbound) Message() (ch <-chan []byte)
- func (ep *Outbound) Send(buf []byte) (err error)
- func (*Outbound) SrcIP() netip.Addr
- func (*Outbound) SrcToString() string
- type Sender
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDataChannelClosed = errors.New("DataChannel state is closed")
View Source
var ErrInitiatorRequired = errors.New("first message initiator is required in webrtc sdp SessionInformation")
View Source
var ErrInitiatorResponderRequired = errors.New("first message initiator responder is required in webrtc sdp SessionInformation")
Functions ¶
Types ¶
type Inbound ¶
type Inbound struct {
// contains filtered or unexported fields
}
func NewInbound ¶
func (*Inbound) DstToBytes ¶
func (ep *Inbound) DstToBytes() []byte
used for mac2 cookie calculations
func (*Inbound) DstToString ¶
func (*Inbound) ExtractInitiator ¶
func (*Inbound) HandleConnect ¶
func (*Inbound) SrcToString ¶
func (*Inbound) SrcToString() string
type Outbound ¶
type Outbound struct {
// contains filtered or unexported fields
}
func NewOutbound ¶
func (*Outbound) DstToBytes ¶
func (ep *Outbound) DstToBytes() []byte
used for mac2 cookie calculations
func (*Outbound) DstToString ¶
func (*Outbound) SrcToString ¶
func (*Outbound) SrcToString() string
Click to show internal directories.
Click to hide internal directories.