package libp2pwebrtc

Import Path
	github.com/libp2p/go-libp2p/p2p/transport/webrtc (on go.dev)

Dependency Relation
	imports 41 packages, and imported by 3 packages

Involved Source Files connection.go fingerprint.go hex.go listener.go logger.go sdp.go stream.go stream_read.go stream_write.go Package libp2pwebrtc implements the WebRTC transport for go-libp2p, as described in https://github.com/libp2p/specs/tree/master/webrtc.
Package-Level Type Names (total 3)
/* sort by: | */
func New(privKey ic.PrivKey, psk pnet.PSK, gater connmgr.ConnectionGater, rcmgr network.ResourceManager, listenUDP ListenUDPFn, opts ...Option) (*WebRTCTransport, error)
func New(privKey ic.PrivKey, psk pnet.PSK, gater connmgr.ConnectionGater, rcmgr network.ResourceManager, listenUDP ListenUDPFn, opts ...Option) (*WebRTCTransport, error)
(*WebRTCTransport) AddCertHashes(addr ma.Multiaddr) (ma.Multiaddr, bool) (*WebRTCTransport) CanDial(addr ma.Multiaddr) bool (*WebRTCTransport) Dial(ctx context.Context, remoteMultiaddr ma.Multiaddr, p peer.ID) (tpt.CapableConn, error) Listen returns a listener for addr. The IP, Port combination for addr must be exclusive to this listener as a WebRTC listener cannot be multiplexed on the same port as other UDP based transports like QUIC and WebTransport. See https://github.com/libp2p/go-libp2p/issues/2446 for details. (*WebRTCTransport) ListenOrder() int (*WebRTCTransport) Protocols() []int (*WebRTCTransport) Proxy() bool *WebRTCTransport : github.com/libp2p/go-libp2p/p2p/net/swarm.OrderedListener *WebRTCTransport : github.com/libp2p/go-libp2p/core/transport.Transport func New(privKey ic.PrivKey, psk pnet.PSK, gater connmgr.ConnectionGater, rcmgr network.ResourceManager, listenUDP ListenUDPFn, opts ...Option) (*WebRTCTransport, error)
Package-Level Functions (total 2)
IsWebRTCDirectMultiaddr returns whether addr is a /webrtc-direct multiaddr with the count of certhashes in addr
func New(privKey ic.PrivKey, psk pnet.PSK, gater connmgr.ConnectionGater, rcmgr network.ResourceManager, listenUDP ListenUDPFn, opts ...Option) (*WebRTCTransport, error)
Package-Level Constants (total 4)
This is higher than other transports(64) as there's no way to detect a peer that has gone away after sending the initial connection request message(STUN Binding request). Such peers take up a goroutine till connection timeout. As the number of handshakes in parallel is still guarded by the resource manager, this higher number is okay.