Documentation ¶
Index ¶
- func NewUDPMuxNewAddr(params ice.UDPMuxParams, newAddrChan chan candidateAddr) *udpMuxNewAddr
- type Option
- type WebRTCTransport
- func (t *WebRTCTransport) CanDial(addr ma.Multiaddr) bool
- func (t *WebRTCTransport) Dial(ctx context.Context, remoteMultiaddr ma.Multiaddr, p peer.ID) (tpt.CapableConn, error)
- func (t *WebRTCTransport) Listen(addr ma.Multiaddr) (tpt.Listener, error)
- func (t *WebRTCTransport) Protocols() []int
- func (t *WebRTCTransport) Proxy() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUDPMuxNewAddr ¶
func NewUDPMuxNewAddr(params ice.UDPMuxParams, newAddrChan chan candidateAddr) *udpMuxNewAddr
NewUDPMuxNewAddr creates an implementation of UDPMux
Types ¶
type Option ¶
type Option func(*WebRTCTransport) error
type WebRTCTransport ¶
type WebRTCTransport struct {
// contains filtered or unexported fields
}
func New ¶
func New(privKey ic.PrivKey, rcmgr network.ResourceManager, opts ...Option) (*WebRTCTransport, error)
func (*WebRTCTransport) Dial ¶
func (t *WebRTCTransport) Dial( ctx context.Context, remoteMultiaddr ma.Multiaddr, p peer.ID, ) (tpt.CapableConn, error)
func (*WebRTCTransport) Protocols ¶
func (t *WebRTCTransport) Protocols() []int
func (*WebRTCTransport) Proxy ¶
func (t *WebRTCTransport) Proxy() bool
Source Files ¶
Click to show internal directories.
Click to hide internal directories.