Versions in this module Expand all Collapse all v0 v0.29.0 Jul 29, 2023 Changes in this version + var ErrListenerClosed = errors.New("listener closed") + type CapableConn interface + Transport func() Transport + type Listener interface + Accept func() (CapableConn, error) + Addr func() net.Addr + Close func() error + Multiaddr func() ma.Multiaddr + type Resolver interface + Resolve func(ctx context.Context, maddr ma.Multiaddr) ([]ma.Multiaddr, error) + type Transport interface + CanDial func(addr ma.Multiaddr) bool + Dial func(ctx context.Context, raddr ma.Multiaddr, p peer.ID) (CapableConn, error) + Listen func(laddr ma.Multiaddr) (Listener, error) + Protocols func() []int + Proxy func() bool + type TransportNetwork interface + AddTransport func(t Transport) error + type Upgrader interface + Upgrade func(ctx context.Context, t Transport, maconn manet.Conn, dir network.Direction, ...) (CapableConn, error) + UpgradeListener func(Transport, manet.Listener) Listener