Matt Joiner
0c28a0f1b1
Use new tracker package interface
2016-02-07 18:49:35 +11:00
Matt Joiner
0e85ff190d
go vet
2016-02-02 00:44:29 +11:00
Matt Joiner
3a206d4f12
util/profile was replaced by github.com/anacrolix/envpprof
2016-01-31 18:35:51 +11:00
Matt Joiner
fe9d5702f6
Fixes for torrent.Reader not having ReadAt
2016-01-18 20:12:51 +11:00
Matt Joiner
153c13db43
Revert "Merge pull request #54 from zhulik/master"
...
This reverts commit 5cf75b869c
, reversing
changes made to 09050ff2c5
.
2016-01-06 12:19:49 +11:00
Gleb Sinyavsky
48c3df2d43
Refactorings
2016-01-05 11:48:16 +03:00
Gleb Sinyavsky
052a899f60
cmd utils fixed
2015-12-27 14:59:07 +03:00
Matt Joiner
812f5af66b
Switch from launchpad.net/gommap to github.com/edsrzf/mmap-go for Windows support
...
Fixes #45 .
2015-12-23 03:50:34 +11:00
Matt Joiner
5aca9d3563
Rewrite cmd/dht-ping
2015-12-08 00:45:42 +11:00
Dmitry Borzov
b42fc90674
Fix name ambiguity for dht-ping, too many things are called pingResponses
2015-12-08 00:13:50 +11:00
Matt Joiner
ff835db955
Actually fix #41 properly; and several big changes
...
bencode:
* Handle omitempty on non-trivial types.
cmd/dht-ping:
* Handle timeouts in ping transactions.
dht:
* Propagate failed transaction responses properly.
* Msg related tests are moved into their own file.
* In some places, IPs in binary form are shorted to 4 bytes if IPv4.
2015-12-07 03:28:28 +11:00
Matt Joiner
5886fa1d6b
cmd/torrent-infohash: Switch to tagflag
2015-11-22 18:49:44 +11:00
Matt Joiner
9230a1b9df
Use uiprogress to display a progress bar per torrent
2015-11-22 18:45:06 +11:00
Matt Joiner
c7f9bfccc1
Ditch go-flags for tagflag
...
Fixes #37
2015-11-05 23:21:39 +11:00
Matt Joiner
f9c600b264
metainfo: Add alternative "builder" API
...
The existing builder API is gross and heavy-handed. I won't rip it out just yet.
2015-10-30 01:21:09 +11:00
Matt Joiner
ea0ccf6a23
Tidy
2015-10-23 12:42:57 +11:00
Matt Joiner
b8da06a885
cmd/torrent: Expose --mmap
2015-10-23 12:42:19 +11:00
Matt Joiner
99a0813d88
dht: Make Msg a struct with bencode tags
2015-10-23 12:41:45 +11:00
Matt Joiner
abdf1f049f
dht: Support IPv6 compact peers
2015-08-06 09:01:38 +10:00
Matt Joiner
4fb7d8f4d4
cmd/dht-secure-id
2015-08-05 02:38:02 +10:00
Matt Joiner
8069573abe
cmd/torrent: Remove some dead code
2015-07-21 22:54:50 +10:00
Matt Joiner
fcd98acc9b
cmd/torrent-metainfo-pprint: Don't print extra newline when -name is true
2015-07-04 13:30:26 +10:00
Alexander Baranov
029f431ff6
Make torrent-pick work with latest changes
2015-06-25 21:02:14 +03:00
Matt Joiner
348c6406eb
cmd/torrent-metainfo-pprint: Output JSON instead
2015-06-22 19:50:29 +10:00
Matt Joiner
ca27d431f4
cmd/torrent-pick: gofmt and sortimports
2015-06-03 13:31:27 +10:00
Matt Joiner
c6e2f2e15d
Merge pull request #16 from scr4t/master
...
torrent-pick tool
2015-06-02 06:28:07 +10:00
Alexander Baranov
05d597a9f7
Only wait for io.Copy; Remove obsolete from client
2015-06-01 23:11:45 +03:00
Alexander Baranov
577b129df5
Use higher-level API to get file
2015-06-01 22:56:10 +03:00
Alexander Baranov
1bb31b979d
Rename picker tool
2015-05-28 23:55:15 +03:00
Matt Joiner
9ea28a5094
go vet
2015-05-20 22:24:09 +10:00
Matt Joiner
ca86b0248e
go vet
2015-05-20 15:47:07 +10:00
Milos Gajdos
41c2773bcf
Removed summary flag. Modified fileToMmap function
...
This commit also reverts the ugly hack in dht.go which was checking for
empty bootstrap node string.
2015-05-16 15:34:09 +01:00
Milos Gajdos
e6e0b227da
Multiple file metainfo mode support in cmd tools
...
torrent-create and torrent-verify did not work correctly when a single
file is present in metainfo torrent file. torrent-create now fails if
the path passed as an argument does not exist. I've als modified
dht.go which now handles the case when an empty string is passed in
DHT bootstrap nodes slice. Finally in span.go I've sneaked in cheekily
a change which defines a type more like idiomatic Go (I have an OCD :-))
2015-05-16 13:23:33 +01:00
Matt Joiner
0d13293d71
Support seeding
2015-05-15 08:39:53 +10:00
Alexander Baranov
b8b403f83e
Basic pick-file functionality
2015-05-11 17:50:59 +03:00
Matt Joiner
c5208569ca
Apply sortimports
2015-04-30 00:31:34 +10:00
Matt Joiner
ca74d8ed33
Made Torrent.GotInfo a function, to avoid use of zero-initialized channel
2015-04-30 00:30:19 +10:00
Matt Joiner
0ec0302d1c
Publicly expose Torrent.GotInfo
2015-04-28 15:24:17 +10:00
Matt Joiner
526d9d738e
Rewrite imports to local bencode and metainfo
2015-04-27 14:55:01 +10:00
Matt Joiner
d48b755776
cmd/torrent-magnet: Error if arguments are given
...
Too easy to make this mistake, and then it hangs.
2015-04-08 02:15:25 +10:00
Matt Joiner
23ff66e300
cmd/...: Some package synopses
2015-04-06 23:04:18 +10:00
Matt Joiner
6b81d57ca2
dht: Clean-up interface, add loads of documentation
2015-04-01 17:29:55 +11:00
Matt Joiner
0fddc286e6
cmd/torrentfs: Tidy
2015-04-01 14:32:42 +11:00
Matt Joiner
8ba4a2e0f3
cmd/torrentfs: Check error creating client
...
This wouldn't have happened with exceptions ;)
2015-04-01 14:30:22 +11:00
Matt Joiner
d05e63d094
Use math.MaxUint64, the more you know
2015-03-30 23:08:43 +11:00
Matt Joiner
026b6da54f
cmd/tracker-announce: Send left=-1, which is what we send when we don't have the metainfo
2015-03-27 17:23:42 +11:00
Matt Joiner
64f833f3f0
cmd/torrent-magnet: Converts a torrent from stdin to a magnet link
2015-03-27 17:16:50 +11:00
Matt Joiner
5f7ad4c769
Merge all the tracker packages, why would anyone want them separately?
2015-03-27 15:12:15 +11:00
Matt Joiner
9f62098e85
cmd/scrape -> cmd/tracker-announce, and a big refresh
...
What it was doing was not scraping, that's something completely different. Now it can also announce magnets.
2015-03-26 17:22:17 +11:00
Matt Joiner
3aa78763aa
Use rogpeppe's sortimports to fix this goimports ordering madness
2015-03-26 17:18:08 +11:00