Versions in this module Expand all Collapse all v1 v1.0.0 Apr 11, 2016 Changes in this version + 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 FallbackDialer struct + func (fbd *FallbackDialer) Dial(a ma.Multiaddr) (Conn, error) + func (fbd *FallbackDialer) Matches(a 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 + type UtpSocket struct + func (s *UtpSocket) Accept() (Conn, error) + func (s *UtpSocket) Dial(raddr ma.Multiaddr) (Conn, error) + func (s *UtpSocket) Matches(a ma.Multiaddr) bool + func (t *UtpSocket) Addr() net.Addr + func (t *UtpSocket) Close() error + func (t *UtpSocket) Multiaddr() ma.Multiaddr + type UtpTransport struct + func NewUtpTransport() *UtpTransport + func (d *UtpTransport) Matches(a ma.Multiaddr) bool + func (t *UtpTransport) Dialer(laddr ma.Multiaddr, opts ...DialOpt) (Dialer, error) + func (t *UtpTransport) Listen(laddr ma.Multiaddr) (Listener, error) Incompatible versions in this module v2.0.1+incompatible Apr 11, 2016