Commit graph

66 commits

Author SHA1 Message Date
Igor Katson
75547d3000 Move to workspaces 2021-07-03 18:18:50 +01:00
Igor Katson
487ff50bd7 Clippy 2021-07-03 15:52:39 +01:00
Igor Katson
2061fe56bb The sucker now works with dht too! Albeit hacky JS one, but still! 2021-07-03 15:22:17 +01:00
Igor Katson
b4ade5eb13 Nothing 2021-07-03 12:52:47 +01:00
Igor Katson
0e80ad3254 Deentangled classes a bit 2021-07-03 12:44:21 +01:00
Igor Katson
85e33741b7 Deentangled classes a bit 2021-07-03 12:40:59 +01:00
Igor Katson
9038630622 Trying to make torrent manager not depend on the whole metainfo 2021-07-03 09:13:09 +01:00
Igor Katson
897517521e Peer info reader done 2021-07-03 00:22:46 +01:00
Igor Katson
46e87a9b80 Split stuff into more files 2021-07-02 22:32:55 +01:00
Igor Katson
48dcf2d1bd I can now download torrent metainfo from peers!! 2021-07-02 17:58:53 +01:00
Igor Katson
302e95649d Screwing around with extended messages 2021-07-02 13:00:46 +01:00
Igor Katson
d722f0edcb Remove all linter warnings 2021-07-02 10:21:19 +01:00
Igor Katson
1f299247d2 Abstract away peer handler 2021-07-02 10:12:48 +01:00
Igor Katson
e666f063ff Can decode extended messages now 2021-07-02 01:38:07 +01:00
Igor Katson
5f60f9e1b4 Make a serde bencode serializer 2021-07-01 23:37:57 +01:00
Igor Katson
563ca78774 Updates 2021-07-01 19:18:19 +01:00
Igor Katson
5942e6a9d5 Updates 2021-07-01 19:17:44 +01:00
Igor Katson
a6981231c1 Add system hasher 2021-07-01 17:18:07 +01:00
Igor Katson
4b6ed36927 De-entangle speed estimator from complex objects 2021-07-01 10:07:12 +01:00
Igor Katson
47966e094c Add speed estimator 2021-06-30 23:26:22 +01:00
Igor Katson
c1f34a6599 Just messing around with Rust typing 2021-06-30 18:42:16 +01:00
Igor Katson
32f2ea4953 Poor mans speed computation 2021-06-30 10:31:30 +01:00
Igor Katson
a3e84e4a99 Add http api for debugging 2021-06-30 10:14:33 +01:00
Igor Katson
1cb7a7bbc6 Enable elapsed stats calculation and slow piece stealing 2021-06-30 00:32:38 +01:00
Igor Katson
ccf19b7921 Inflight piece: tracking start time 2021-06-30 00:02:25 +01:00
Igor Katson
e843209aa9 nothing 2021-06-30 00:00:44 +01:00
Igor Katson
2fc225cfa2 Add tracker refresh interval parameter 2021-06-29 00:17:10 +01:00
Igor Katson
c2affa8865 Nothing much 2021-06-28 22:48:14 +01:00
Igor Katson
b26af687b7 Check the chunk before uploading 2021-06-28 22:21:21 +01:00
Igor Katson
df282ae9d8 Dude this is like production ready! 2021-06-28 21:06:00 +01:00
Igor Katson
34dd074310 Openssl + a bunch of other refactorings 2021-06-28 20:40:13 +01:00
Igor Katson
b4b22ea9a4 Optimize on transmit haves 2021-06-28 16:55:50 +01:00
Igor Katson
14b62b45c5 Downloading chunks now does not copy the chunks, but writes them straight to disk. (Still reads into a buffer first though, but does not allocate on every chunk) 2021-06-28 16:37:15 +01:00
Igor Katson
fab43a8d23 Uploading chunks now reads straight into write buffer 2021-06-28 16:09:20 +01:00
Igor Katson
2192842099 Refactoring reading a bit 2021-06-28 15:44:29 +01:00
Igor Katson
a799ff1219 Move all file operatiosn into a separate file 2021-06-28 15:17:57 +01:00
Igor Katson
e0ffb3afe1 File ops moved out 2021-06-28 15:10:28 +01:00
Igor Katson
5f8100ebad Nothing 2021-06-28 14:58:53 +01:00
Igor Katson
5a075c8ef3 Nothing 2021-06-28 14:52:12 +01:00
Igor Katson
c6cf9776d1 Updating visilibity little by little 2021-06-28 14:42:19 +01:00
Igor Katson
1e478aabac Move peer state to a separate file 2021-06-28 14:23:28 +01:00
Igor Katson
0d85eb9f2a Split the huge torrent manager into 3 classes. All public access members but ok for the start 2021-06-28 12:30:23 +01:00
Igor Katson
bde18ab734 Refactor 2021-06-28 11:36:47 +01:00
Igor Katson
205ce3265a Rename 2021-06-28 11:29:20 +01:00
Igor Katson
06136cc170 Pretty stable now 2021-06-27 14:49:41 +01:00
Igor Katson
0ac1116aba Writing still broken 2021-06-27 12:51:19 +01:00
Igor Katson
3f068883c2 a buggy mess 2021-06-27 12:25:03 +01:00
Igor Katson
efaa96a9b5 Something broke computation of initial checks 2021-06-27 11:01:41 +01:00
Igor Katson
3ab61a6108 Introduce more bugs :) 2021-06-27 10:25:36 +01:00
Igor Katson
5c092389f9 saving 2021-06-27 10:10:59 +01:00