Documentation ¶
Overview ¶
Package autobind for automically binding on the local server this package is only for convience and it's suggested to use torrent.NewSocketsBind instead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultClient ¶
NewDefaultClient setup a client and connect a using defaults settings.
Types ¶
type Autobind ¶
type Autobind struct { // The address to listen for new uTP and TCP bittorrent protocol // connections. DHT shares a UDP socket with uTP unless configured // otherwise. ListenHost func(network string) string ListenPort int DisableIPv4 bool DisableIPv6 bool DisableTCP bool DisableUTP bool NoDHT bool }
Autobind manages automatically binding a client to available networks.
func New ¶
New used to automatically listen to available networks on the system. limited configuration options. use client.Bind for more robust configuration.
func NewLoopback ¶
NewLoopback autobind to the loopback device.
func NewSpecified ¶
NewSpecified for use in testing only, panics if invalid host/port.
Click to show internal directories.
Click to hide internal directories.