Documentation ¶
Overview ¶
Package btconn provides support for dialing and accepting BitTorrent connections.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Accept ¶
func Accept( conn net.Conn, handshakeTimeout time.Duration, getSKey func(sKeyHash [20]byte) (sKey []byte), forceEncryption bool, hasInfoHash func([20]byte) bool, ourExtensions [8]byte, ourID [20]byte) ( encConn net.Conn, cipher mse.CryptoMethod, peerExtensions [8]byte, peerID [20]byte, infoHash [20]byte, err error)
Types ¶
Click to show internal directories.
Click to hide internal directories.