Versions in this module Expand all Collapse all v0 v0.4.0-dev Dec 2, 2015 v0.3.10 Dec 8, 2015 Changes in this version + func IsTcpMultiaddr(a ma.Multiaddr) bool + func IsUtpMultiaddr(a ma.Multiaddr) bool + func ReuseErrShouldRetry(err error) bool + func ReuseportIsAvailable() bool + type Conn interface + Transport func() Transport + type DialOpt interface + type Dialer interface + Dial func(raddr ma.Multiaddr) (Conn, error) + Matches func(ma.Multiaddr) bool + type Listener interface + Accept func() (Conn, error) + Addr func() net.Addr + Close func() error + Multiaddr func() ma.Multiaddr + type ReuseportOpt bool + var ReusePorts ReuseportOpt = true + type TcpTransport struct + func NewTCPTransport() *TcpTransport + func (t *TcpTransport) Dialer(laddr ma.Multiaddr, opts ...DialOpt) (Dialer, error) + func (t *TcpTransport) Listen(laddr ma.Multiaddr) (Listener, error) + func (t *TcpTransport) Matches(a ma.Multiaddr) bool + type TimeoutOpt time.Duration + type Transport interface + Dialer func(laddr ma.Multiaddr, opts ...DialOpt) (Dialer, error) + Listen func(laddr ma.Multiaddr) (Listener, error) + Matches func(ma.Multiaddr) bool