├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── main.go ├── queryTracker.bash ├── resolveBindIP.go ├── resolveBindIP_test.go ├── test.bash ├── testData ├── a.torrent └── testFile ├── testdht.bash ├── testswarm.bash ├── testtracker.bash ├── torrent ├── accumulator.go ├── accumulator_test.go ├── bitset.go ├── cache.go ├── cache_test.go ├── choker.go ├── choker_test.go ├── execOnSeeding.go ├── files.go ├── files_test.go ├── hdcache.go ├── hdcache_test.go ├── listen.go ├── lpd.go ├── metainfo.go ├── metainfo_test.go ├── nat.go ├── natpmp.go ├── osfiles.go ├── peer.go ├── peer_test.go ├── pieces.go ├── pieces_test.go ├── proxy.go ├── ramfiles.go ├── sftp.go ├── torrent.go ├── torrentLoop.go ├── trackerClient.go ├── upnp.go ├── uri.go └── uri_test.go └── tracker ├── tracker.go └── tracker_test.go /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | *.[56ao] 3 | Taipei-Torrent 4 | *.exe 5 | testdata/downloads/ 6 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/README.md -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/main.go -------------------------------------------------------------------------------- /queryTracker.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/queryTracker.bash -------------------------------------------------------------------------------- /resolveBindIP.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/resolveBindIP.go -------------------------------------------------------------------------------- /resolveBindIP_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/resolveBindIP_test.go -------------------------------------------------------------------------------- /test.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/test.bash -------------------------------------------------------------------------------- /testData/a.torrent: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/testData/a.torrent -------------------------------------------------------------------------------- /testData/testFile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/testData/testFile -------------------------------------------------------------------------------- /testdht.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/testdht.bash -------------------------------------------------------------------------------- /testswarm.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/testswarm.bash -------------------------------------------------------------------------------- /testtracker.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/testtracker.bash -------------------------------------------------------------------------------- /torrent/accumulator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/accumulator.go -------------------------------------------------------------------------------- /torrent/accumulator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/accumulator_test.go -------------------------------------------------------------------------------- /torrent/bitset.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/bitset.go -------------------------------------------------------------------------------- /torrent/cache.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/cache.go -------------------------------------------------------------------------------- /torrent/cache_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/cache_test.go -------------------------------------------------------------------------------- /torrent/choker.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/choker.go -------------------------------------------------------------------------------- /torrent/choker_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/choker_test.go -------------------------------------------------------------------------------- /torrent/execOnSeeding.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/execOnSeeding.go -------------------------------------------------------------------------------- /torrent/files.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/files.go -------------------------------------------------------------------------------- /torrent/files_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/files_test.go -------------------------------------------------------------------------------- /torrent/hdcache.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/hdcache.go -------------------------------------------------------------------------------- /torrent/hdcache_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/hdcache_test.go -------------------------------------------------------------------------------- /torrent/listen.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/listen.go -------------------------------------------------------------------------------- /torrent/lpd.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/lpd.go -------------------------------------------------------------------------------- /torrent/metainfo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/metainfo.go -------------------------------------------------------------------------------- /torrent/metainfo_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/metainfo_test.go -------------------------------------------------------------------------------- /torrent/nat.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/nat.go -------------------------------------------------------------------------------- /torrent/natpmp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/natpmp.go -------------------------------------------------------------------------------- /torrent/osfiles.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/osfiles.go -------------------------------------------------------------------------------- /torrent/peer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/peer.go -------------------------------------------------------------------------------- /torrent/peer_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/peer_test.go -------------------------------------------------------------------------------- /torrent/pieces.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/pieces.go -------------------------------------------------------------------------------- /torrent/pieces_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/pieces_test.go -------------------------------------------------------------------------------- /torrent/proxy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/proxy.go -------------------------------------------------------------------------------- /torrent/ramfiles.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/ramfiles.go -------------------------------------------------------------------------------- /torrent/sftp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/sftp.go -------------------------------------------------------------------------------- /torrent/torrent.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/torrent.go -------------------------------------------------------------------------------- /torrent/torrentLoop.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/torrentLoop.go -------------------------------------------------------------------------------- /torrent/trackerClient.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/trackerClient.go -------------------------------------------------------------------------------- /torrent/upnp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/upnp.go -------------------------------------------------------------------------------- /torrent/uri.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/uri.go -------------------------------------------------------------------------------- /torrent/uri_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/torrent/uri_test.go -------------------------------------------------------------------------------- /tracker/tracker.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/tracker/tracker.go -------------------------------------------------------------------------------- /tracker/tracker_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jackpal/Taipei-Torrent/HEAD/tracker/tracker_test.go --------------------------------------------------------------------------------