Documentation ¶
Index ¶
- Constants
- Variables
- func NewMultiListener(ctx context.Context, bind bool, lns ...net.Listener) (net.Listener, error)
- func NewMultiListenerFromAddr(ctx context.Context, bind bool, addr ...net.Addr) (net.Listener, error)
- type MultiAddrDialType
- type MultiAddrDialer
- func (md *MultiAddrDialer) Dial(network string, address string) (conn net.Conn, err error)
- func (md *MultiAddrDialer) DialContext(ctx context.Context, network string, address string) (conn net.Conn, err error)
- func (md *MultiAddrDialer) MultiDial(addr ...net.Addr) (conn net.Conn, err error)
- func (md *MultiAddrDialer) MultiDialContext(ctx context.Context, addr ...net.Addr) (conn net.Conn, err error)
Constants ¶
View Source
const ( MultiAddrDialTypeTurn = MultiAddrDialType(iota) MultiAddrDialTypeGo )
Variables ¶
View Source
var DefaultMultiAddrDialer = NewDefaultMultiAddrDialer()
Functions ¶
func NewMultiListener ¶
Types ¶
type MultiAddrDialType ¶
type MultiAddrDialType uint8
type MultiAddrDialer ¶
type MultiAddrDialer struct {
// contains filtered or unexported fields
}
func NewDefaultMultiAddrDialer ¶
func NewDefaultMultiAddrDialer() *MultiAddrDialer
func NewMultiAddrDialer ¶
func NewMultiAddrDialer(sType MultiAddrDialType, drMap map[string]xnetutil.Dialer) *MultiAddrDialer
func (*MultiAddrDialer) DialContext ¶
func (*MultiAddrDialer) MultiDialContext ¶
Click to show internal directories.
Click to hide internal directories.