Commit Graph

54 Commits

Author SHA1 Message Date
idk
ff4c19cc0a switch it over to interfaces 2021-12-30 15:43:15 -05:00
4314dbe520 only test go1.11+ 2021-09-05 21:19:43 +08:00
c717b4efcf update github action workflows 2021-09-05 21:18:23 +08:00
4ff417fc95 update github action workflows 2021-09-05 21:15:49 +08:00
91c1b00781 update github action workflows 2021-09-05 21:10:10 +08:00
9dd65eb86c update github action workflows 2021-09-05 21:04:46 +08:00
1fae5655b3 use github actions instead of travis 2021-09-05 21:00:50 +08:00
55029fba24 update README 2021-06-11 21:07:32 +08:00
55d5ad3494 the directory to create Info must contain a file at least 2021-02-08 16:34:25 +08:00
fd3825a27b fix the error when newing a Info from a directory 2021-02-08 15:32:53 +08:00
b983dc1754 fix: Info.GetFileByOffset only allows fileOffset==file.Length for the last file 2021-01-03 11:07:09 +08:00
a44f3f34b6 fix: add the file Paths for the single file for Info.GetFileByOffset 2021-01-03 11:03:01 +08:00
9b1326d9a4 fix: correct fileOffset to file.Length when Info.GetFileByOffset reaches the last file 2021-01-03 10:59:08 +08:00
9fdf2b2a6b update and fix the metainfo 2020-12-26 23:19:42 +08:00
1d811ccdc2 GetPeers returns []GetPeersResult instead of <-chan GetPeersResult 2020-10-24 12:32:04 +08:00
6086fc53b7 update the doc comment 2020-06-28 20:06:38 +08:00
bdb3db3166 set the ipv4/ipv6 protocols as the default when the address is empty 2020-06-27 23:10:54 +08:00
10bf29d7d4 update README.md 2020-06-20 23:06:20 +08:00
87a03f763b add some piece sizes 2020-06-20 19:29:54 +08:00
a2af7e1c0c update peer server 2020-06-19 20:38:20 +08:00
5841196688 update README.md 2020-06-19 20:19:43 +08:00
79d51906c1 update the downloader 2020-06-19 20:19:32 +08:00
ada4692b65 update peer protocol 2020-06-19 20:18:58 +08:00
32cc9a6738 fix a bug 2020-06-19 20:17:28 +08:00
d8551d97b2 add the path /announce into the tracker url if missing 2020-06-19 20:16:50 +08:00
7a19f492a3 add the String method for BitField 2020-06-18 23:27:20 +08:00
0c27c4f805 add the MType prefix for the message types 2020-06-18 23:14:23 +08:00
4d9030d096 add the MType prefix for the message types 2020-06-18 23:12:27 +08:00
3f0570b868 use the type BitField instead of []bool 2020-06-18 23:06:43 +08:00
920f99e2c6 add the dial timeout 2020-06-18 22:43:13 +08:00
fbfe450c03 add OnWriteMsg to customize the message sending 2020-06-18 22:42:15 +08:00
8a90efa6f0 update file piece and block 2020-06-18 22:40:20 +08:00
6804c8fb43 update tracker 2020-06-18 22:39:22 +08:00
a7f955dfe6 update example test 2020-06-14 17:11:39 +08:00
a6b10015cf add the file downloading handler 2020-06-14 16:58:48 +08:00
8951a19acc add the no-op implementation for the handlers 2020-06-13 10:38:49 +08:00
dafbca62c4 update torrent downloader 2020-06-12 21:05:27 +08:00
dd9a644ea4 update PeerConn interface 2020-06-12 21:03:59 +08:00
2a8b6bd467 update tracker interface 2020-06-12 21:03:02 +08:00
11fe99eeeb MetaInfo.Magnet uses the information of info as the default when the arguments are the empty value 2020-06-12 21:02:22 +08:00
0b4a6d67c0 fix: the memory leaks because of the dead loop 2020-06-11 23:55:13 +08:00
2687c8a5cc add the Reader and Writer for torrent files 2020-06-11 22:36:38 +08:00
09c7246f74 add the new methods PieceOffset and GetFileByOffset for Info 2020-06-11 00:02:20 +08:00
246aaf4157 add PathWithPrefix to add the prefix to the returned path 2020-06-11 00:01:50 +08:00
745b8b5d40 the path returned by File.Path contains the directory 2020-06-11 00:01:07 +08:00
ddec282207 allow CopyNBuffer to set the buffer to nil 2020-06-09 21:00:33 +08:00
af334826d7 does not return an error for the unknown type of the peer message 2020-06-09 20:59:55 +08:00
810bd5932a add the callback OnClose for Handler 2020-06-07 15:28:08 +08:00
249556c2e5 remove the support of Go 1.7&1.8 because of the requirement of type alias 2020-06-07 14:43:44 +08:00
43abddb2cb add the test for go 1.7, 1.8, 1.9, 1.10 2020-06-07 14:21:19 +08:00