Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DhtNode ¶
func New ¶
func New( nodeAddr *net.UDPAddr, torrentInfoHash [20]byte, startingNodes []dht.Addr, peerPort uint16, onNewPeerReceived func(peer peers.Peer)) (*DhtNode, error)
New creates a new DHT Node. peerPort, the port the controlling peer is listening to onNewPeerReceived, a function to be executed when a new Peer was found, used for adding the new peer to the controlling peers storage
func (*DhtNode) PrintStats ¶
func (d *DhtNode) PrintStats()
Click to show internal directories.
Click to hide internal directories.