]> Sergey Matveev's repositories - btrtrc.git/blob - t.go
Rework the Torrent Reader interface, to allow reader options, and add "responsive...
[btrtrc.git] / t.go
1 package torrent
2
3 // The public interface for a torrent within a Client.
4
5 // A handle to a live torrent within a Client.
6 type Torrent struct {
7         cl *Client
8         *torrent
9 }
10
11 func (t *Torrent) NewReader() (ret *Reader) {
12         ret = &Reader{
13                 t:         t,
14                 readahead: 5 * 1024 * 1024,
15         }
16         return
17 }