Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockState ¶
type TorrentSession ¶
type TorrentSession struct {
MetaInfo *metainfo.MetaInfo
OurPeerID [20]byte
ListenPort uint16
DownloadDir string
OurBitfield peer.Bitfield
ConnectedPeers map[[20]byte]*peer.Client
TrackerRequest tracker.TrackerRequest
PieceWorkQueue chan *PieceWork
Results chan *peer.PieceBlock
ActivePieces map[uint32]*PieceWork
// contains filtered or unexported fields
}
func (*TorrentSession) Run ¶
func (s *TorrentSession) Run() error
Click to show internal directories.
Click to hide internal directories.