DialerForAddr is a function that returns a dialer for a given address.
Implementations must return either a ContextDialer or an error. It is
invalid to return nil, nil.
func WithDialerForAddr(d DialerForAddr) Option
TcpTransport is the TCP transport. CanDial returns true if this transport believes it can dial the given
multiaddr. Dial dials the peer at the remote address.(*TcpTransport) DialWithUpdates(ctx context.Context, raddr ma.Multiaddr, p peer.ID, updateChan chan<- transport.DialUpdate) (transport.CapableConn, error) Listen listens on the given multiaddr. Protocols returns the list of terminal protocols this transport can dial. Proxy always returns false for the TCP transport.(*TcpTransport) String() string UseReuseport returns true if reuseport is enabled and available.
*TcpTransport : github.com/libp2p/go-libp2p/core/transport.DialUpdater
*TcpTransport : github.com/libp2p/go-libp2p/core/transport.Transport
*TcpTransport : expvar.Var
*TcpTransport : fmt.Stringer
func NewTCPTransport(upgrader transport.Upgrader, rcmgr network.ResourceManager, sharedTCP *tcpreuse.ConnMgr, opts ...Option) (*TcpTransport, error)
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.