outgoinghandshaker

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OutgoingHandshaker

type OutgoingHandshaker struct {
	Addr       *net.TCPAddr
	Conn       net.Conn
	PeerID     [20]byte
	Extensions *bitfield.Bitfield
	Error      error
	// contains filtered or unexported fields
}

func New

func New(addr *net.TCPAddr) *OutgoingHandshaker

func (*OutgoingHandshaker) Close

func (h *OutgoingHandshaker) Close()

func (*OutgoingHandshaker) Run

func (h *OutgoingHandshaker) Run(dialTimeout, handshakeTimeout time.Duration, peerID, infoHash [20]byte, resultC chan *OutgoingHandshaker, ourExtensions *bitfield.Bitfield, disableOutgoingEncryption, forceOutgoingEncryption bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL