Commit Graph
92 Commits
Author SHA1 Message Date
Adrien Béraud 31bd66b4c1 avoid gcc warning 2014-12-30 15:31:11 -05:00
Adrien Béraud 7f1de35490 log correct listening/announcement status 2014-12-30 15:30:32 -05:00
Adrien Béraud 9339f71f31 keep bad nodes in searches
reduces operation times with knwon hashes
2014-12-29 16:46:01 -05:00
Adrien Béraud 11af8de312 cleanup 2014-12-25 19:41:05 -05:00
Adrien Béraud 33542e932a use std::chrono for time tracking 2014-12-24 01:13:43 -05:00
Adrien Béraud fde26fef5b Update README.md 2014-12-17 14:54:38 -05:00
Adrien Béraud 24ed251517 Use constexpr for integer constants 2014-12-17 11:46:16 -05:00
Adrien Béraud 4e998250c7 don't import already expired values 2014-12-17 10:44:23 -05:00
Adrien Béraud df1368f510 fix wrong method call causing stack overflow 2014-12-16 17:57:40 -05:00
Adrien Béraud b97e323f78 fix some encryption issues 2014-12-16 15:10:22 -05:00
Adrien Béraud 73d9b692ee allow to cancel listen through dhtrunner 2014-12-15 16:34:45 -05:00
Adrien Béraud c9528f3536 securedht: retransmit return value 2014-12-15 16:33:24 -05:00
Adrien Béraud 96ab433aee Update README.md 2014-12-15 14:42:03 -05:00
Adrien Béraud 726e651572 listeners: also listen for local storage changes 2014-12-15 14:35:59 -05:00
Adrien Béraud 3ee8149178 run operation unlocked 2014-12-12 00:53:13 -05:00
Adrien Béraud 2f2177e957 runner: use a queue to process operations 2014-12-11 16:46:29 -05:00
Adrien Béraud 07d51ae155 reduce search timeout 2014-12-11 01:25:37 -05:00
Adrien Béraud 2df200ab86 dhtrunner: clarify comment 2014-12-11 01:25:24 -05:00
Adrien Béraud 63d50805ed node: allow to print log 2014-12-09 19:01:54 -05:00
Adrien Béraud 6e12193f7f fix put callback 2014-12-09 19:00:53 -05:00
Adrien Béraud 3d4ecd4064 Show listener IP in logs 2014-12-08 15:16:43 -05:00
Adrien Béraud 1789a5680e disable lto 2014-12-08 12:48:17 -05:00
Adrien Béraud 5c4a68ccb2 dhtnode: fix error message 2014-12-08 11:53:19 -05:00
Adrien Béraud 38265d587a dhtrunner: reduce max blocking time to 5 seconds 2014-12-07 18:25:03 -05:00
Adrien Béraud 33b3765679 node: cleanup 2014-12-07 18:20:13 -05:00
Adrien Béraud d9b1635899 dht: status is connected from one good node 2014-12-07 18:19:43 -05:00
Adrien Béraud c780c3d14a dhtrunner: add cancelPut 2014-12-07 18:19:19 -05:00
Adrien Béraud d436afccb5 infohash: fill with 0 when provided data is not long enough 2014-12-07 18:18:32 -05:00
Adrien Béraud f5aaaf8b49 add missing headers 2014-12-07 16:26:12 -05:00
Adrien Béraud 1daff73b34 node: make a proper CLI 2014-12-07 16:25:17 -05:00
Adrien Béraud 6c9f93df53 securedht: make parent class Dht public 2014-12-07 16:24:02 -05:00
Adrien Béraud 21039927af reduce request timeout times to 6 seconds 2014-12-06 23:37:38 -05:00
Adrien Béraud 65eec58860 clarify debug messages 2014-12-06 23:17:25 -05:00
Adrien Béraud 7aaa794bd5 better handling of error messages 2014-12-06 22:44:34 -05:00
Adrien Béraud 183bb8ffd7 add enable debug 2014-12-06 20:25:58 -05:00
Adrien Béraud cc940a9fb3 enable tools by default 2014-12-06 20:18:15 -05:00
Adrien Béraud e0794b9a87 manage multiple simultaneous local gets 2014-12-06 19:52:46 -05:00
Adrien Béraud eaa7fc77ed searches: improve handling of disconnected nodes in search tables 2014-12-06 16:14:58 -05:00
Adrien Béraud 6d6a2214db crypto: save private keys in PEM 2014-12-06 16:11:45 -05:00
Adrien Béraud b88f895a5e don't use invalid nodes to init search from routing table 2014-12-06 15:23:58 -05:00
Adrien Béraud 79ef324cd3 avoid duplicating hard-coded constants 2014-12-06 14:22:54 -05:00
Adrien Béraud 5492683207 dht: fix get done_callback 2014-12-05 17:25:03 -05:00
Adrien Béraud 23cf7cc0c0 implement listener callback 2014-12-05 16:22:35 -05:00
Adrien Béraud 277a9312e2 listeners: init with local values 2014-12-05 16:06:18 -05:00
Adrien Béraud f6ef054d9d fix case where signed value seq. num. shouldn't increase 2014-12-05 11:37:18 -05:00
Adrien Béraud fdaab32eb5 crypto: serialize in DER format by default 2014-12-05 11:36:17 -05:00
Adrien Béraud 09cfd86a09 crypto: allow to set generated RSA key size 2014-12-05 11:28:16 -05:00
Adrien Béraud b5884c079d node: allow to put signed data 2014-12-05 00:18:35 -05:00
Adrien Béraud 9afbb8445f fix edition of signed data 2014-12-05 00:17:51 -05:00
Adrien Béraud 6458a9c589 crypto: allow to encrypt more than RSA block size
TODO: implement AES ecryption
2014-12-05 00:12:57 -05:00